I have the following lists:
<h4>Procedures</h4>
<ul>
<li">Foo</li>
<li">Foobar</li>
<li">FooBarBazz</li>
</ul>
<h4>Packages</h4>
<ul>
<li">Foo</li>
<li">Foobar</li>
<li">FooBarBazz</li>
</ul>
I tried with this JQuery, but it did not work ...
<script>
$(document).ready(function(){
$('h4').click(function(){
this>li.toggle();
});
});
</script>
I wanted to be able to, as soon as I clicked on the corresponding H4 hide and show list as in a toggle, how should I proceed?