I have elements in a and I want them expand down and up and each element should expand down and up.
HTML:
I would recommend avoiding the styling with the fixed height.
Add a style="display:none" on each
:
- click
Then do this in your javascript:
$(document).ready(function(){
$('.expand').click(function(){
$(this).parent().find("p").slideToggle();
});
});
In this way you get to toggle each answer with the click action.