I have a button and a div with inside some text:
<h2>Click me</h2>
<div class="expand">Lot of text here....</div>
I want to show just 2 rows of the text as default, so I put height to 30px and overflow Hidden.
When I click on the H2 element I want animate the text to slideDown and if i click another time it will slideUp to the default height (30px).
I'm trying many things with jQuery, but it doesn't work.
EDIT:
I also have more than one "expand" and more than one "H2" and text is different into div, so the height is not fix... I would like to slide to the "auto" height or 100%.
Can someone help me? Thanks!
` and `` pairs :)
– Nick Craver Jan 05 '11 at 11:34