It is shorter, but it just doesn't seem quite as jQuery-ish. ;)

Glen

On Dec 7, 2007 1:13 PM, Dave Methvin <[EMAIL PROTECTED]> wrote:

>
> >   $("#"+this.className).[(this.checked?"show":"hide")]();
>
> Belay that, try this:
>
> $("#"+this.className)[this.checked?"show":"hide"]();
>
> I'm always making code longer than it has to be. :)
>

Reply via email to