I am currently working with Jquery Mobile and utilizing a collapsible set. By default, when I click on h3, the collapsible content is shown. What I am trying to achieve is that when I click on h3 (Animals), the h3 element should disappear and only the ul containing Cats should be visible. Similarly, if I click on the image inside the ul for Cats panel, it should be hidden and the header-h3 should reappear. This functionality needs to be applied across a large dataset.
//html
<div id="list" data-role="collapsibleset" data-inset="false">
<div data-role="collapsible">
<h3>Animals</h3>
<ul data-role="listview" data-inset="false">
<li><span><img id="image" src="http://lorempixel.com/20/20/"></span>Cats</li>
</ul>
</div>