I'm making a collapsible treeView.
I made it all, I just need my +
and -
icons to toggle whenever they are clicked.
I did the part when I change an icon from +
to -
, on click, with jQuery with the following code:
$(this).attr('src','../images/expand.gif');
Problem is, I don't know how to make it go other way around, when i click on the node again :)