Hello,
Not sure how to do this, was thinking of using anchors but not sure how to make it expand that way, thank you for the help.
HTML:
<div class="heading"><h1>News 1</h1></div>
<div class="expandable"><p>Text goes here</p></div>
<div class="heading"><h1>News 2</h1></div>
<div class="expandable"><p>Text goes here</p></div>
JavaScript:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".expandable").hide();
jQuery(".heading").click(function()
{
jQuery(this).next(".expandable").slideToggle(500);
});
});
</script>