On Jan 25, 2007, at 5:12 PM, Giuliano Marcangelo wrote:
> How about,
>
> $('#main-content').find('#fourth-para').addClass('test2');
>
> that does not throw an exception
Absolutely! But, the other is still a bug. Glad to see that Jennifer
logged it.
That's one of the things about jQuery that makes me giddy with
happiness -- there are always so many different ways to get to where
I want to go. That reminds me ... I was running into an error
recently with an older build doing something simple like this:
$('p').contains('Browser').eq(0).prev('input')
Fortunately, the way the HTML was set up, I had my choice of
$('p').contains('Browser').eq(0).siblings('input')
or
$('p').contains('Browser').eq(0).parent().find('input')
or
any of a number of other paths to the input.
Cheers,
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/