[jQuery] Re: :first relative to clicked element

2009-08-21 Thread Carl-Johan Lindqvist
#x27;).click(function() { >                 $(this).nextAll('blockquote:first') >                 .slideToggle('slow') >                 .end() >                 .nextAll('h6:first').slideToggle('slow'); >             }); > > On Aug 21, 3:08 am, Car

[jQuery] :first relative to clicked element

2009-08-20 Thread Carl-Johan Lindqvist
Hi I'm just learning jQuery and have some troubles with the selectors. I'm using this (found in the basic training file) to show and hide a Blockquote paragraph. $('#content').find('blockquote').hide().end().find('h5').click(function () { $(this).next().next().slideToggle('slow');