Take a look at the list defined in the link provided: http://jsfiddle.net/NNFEh/7/
Here is a portion of it:
<ul id="Boss">
<li class="B">Beverages
<ul>
<li class="C">Hot
<ul>
<li><a href="#">Lorem Ipsum</a>
</li>
<li><a href="#">Medswer</a>
</li>
</ul>
</li>
</ul>
</li>
I am looking to include a +/- icon on all parent nodes, specifically those with classes B and C. You can refer to the CSS class found at http://jsfiddle.net/NNFEh/7/ where the icon has been assigned from a CSS sprite.
Initially, the two parent nodes (with class B) should display "+". Upon user clicking any of these parent nodes, it should switch to "-" and toggle back and forth accordingly.
Please advise on how I can accomplish this task. Thank you in advance.