[jQuery] Re: :first relative to clicked element

2009-08-22 Thread Jules
I tested this and it works with FF3.0 and IE 8.0 $("#content").find("blockquote") .hide() .before("Click for more...") .end() .find('h5').click(function() { $(this).nextAll('blockquote:first')

[jQuery] Re: :first relative to clicked element

2009-08-21 Thread Carl-Johan Lindqvist
Hi Jules and thanks for your reply. Sadly, that didn't work (though I now use your $(this).nextAll ('blockquote:first') to select the blockquote, it looks better than .next().next() ) Might the problem with the tag has something to do with the fact that the whole More.. is added by jQuery itsel

[jQuery] Re: :first relative to clicked element

2009-08-20 Thread Jules
$('#content').find('blockquote') .hide() .end() .find('h5').click(function() { $(this).nextAll('blockquote:first') .slideToggle('slow') .end() .nextAll('h6:first').slideToggle('slow');