Ravleen Kaur Ravleen Kaur - 2 years ago 161
HTML Question

Tree view expand collapse functionality?

I want to add expand & collapse functionality in the tree view list..how to add this?
I have added the jqueries required. . .

<div id="sidetree">
<div class="company">Company</div>
<div id="sidetreecontrol" class="sidetreecontrol"></div>
<ul class="treeview" id="tree">
<li><a href="#">Home</a></li>
<li class="expandable">
<div class="hitarea expandable-hitarea"></div>
<span><strong>About Us</strong></span>
<ul style="display: none;">
<li><a href="#">Our Offers</a></li>
<li class="last"><a href="#">Our Offers</a></li>

Answer Source

I think adding

<a href="?#">Collapse All</a> | <a href="?#">Expand All</a>

should do the trick.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download