4
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 didn’t work...
<script>
$(document).ready(function(){
$('h4').click(function(){
this>li.toggle();
});
});
</script>
I wish I could, once I click on the corresponding H4 hide and show the list as in a toggle, how should I proceed?
Next is good option here.
+1
– Sergio