||View All MessagesBack to WebFX|
I'm trying to come up with a way to change the class attribute of the href tag based on whether an item is a folder or not. I've figured out how to do this to the point where when the tree loads, all folders are a different class than everything else. But, when I click on a folder to expand it and then click it again to close it up, the class appears to go back to default, which is not what I want. I want to be able to set something like this for a folder element and have it stay that way regardless of what state the folder is in (closed or expanded):|
<a href="http://www.website.com/" class="folderClass">Folder</a>
All other elements would be something like this:
<a href="http://www.website.com/" class="regular">Item</a>
Any ideas on how I can achieve this?