Reputation: 77
Everything's explained there in the fiddle.
Here, div is toggling below, but what i want is div should toggle upwards and push the above div up. i.e. the div which is there with text will go up as heading.
Thanks
Upvotes: 0
Views: 1484
Reputation: 5104
This should do it for ya: http://jsfiddle.net/JftGd/2/
What I did was wrapped the paragraphs in a div, and added a .slideToggle()
to that div in the click
event function.
Hope this is what you were looking for :)
Upvotes: 3