Perhaps you're right.  But, in the mean time, you could always use

$('label').siblings().find('input,textarea').addClass('blah');

- Brian


> Hey, this is my first post to discuss@ and I'm new to jQuery though
> I'm loving it.   I don't know if this is a bug or not...
>
> Shouldn't $('label').siblings('input,textarea').addClass('blah'); work?
>
> $('input,textarea').addClass('blah') works (but not at the scope of
> items that are siblings to labels.
>
> $('label').siblings('input').addClass('blah').end().siblings
> ('textarea').addClass('blah').end(); also works for what I'm doing,
> but it seemed to me the expression in siblings should work the same
> way as an expression in $().  Am I wrong on that?
>
> Thanks in advance,
>
> Gavin
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to