Thanks Brian and Jörn, that indeed does work, but I still wonder if
the siblings() expression should match the functionality of find() or
$(). Would be nice to find a definitive answer to that.
Thanks again,
Gavin
On Oct 26, 2006, at 7:15 AM, Jörn Zaefferer wrote:
>> Perhaps you're right.
> Perhaps you're right. But, in the mean time, you could always use
>
> $('label').siblings().find('input,textarea').addClass('blah');
I guess that should be rather:
$('label').siblings().filter('input,textarea').addClass('blah');
--
Jörn Zaefferer
http://bassistance.de
--
Der GMX SmartSurfer
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').sib
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 l