[jQuery] Re: Getting the child element on click

2009-05-26 Thread Matt
You're a hero. I didn't even know about the slideToggle() function, I was using an if statement to test if the was hidden - thanks a ton. Matt On May 26, 7:57 pm, "M.M." wrote: > $('.feature h2').click(function() { >     $(this).siblings('p').slideToggle(); return false; > > });

[jQuery] Re: Getting the child element on click

2009-05-26 Thread M.M.
$('.feature h2').click(function() { $(this).siblings('p').slideToggle(); return false; });