I have javascript tree which is built and defined with list items
The ul’s gets the style property display= none when uncollapsed and no style when collapse. The idea is to remember the state of the tree. I want to do this by saving the style properties in a cookie. I got most of the cookie script working only i can’t seem to get the style properties and store them.
anyone help please, much appreciated
Here is the start of the javascript
var stateColl= document.getElementsByTagName("ul");
for( i=0; i < stateColl.length;i++)
{
alert(stateColl[i]);
}
and this how mu html looks like ;
for collapsed tree;
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
for uncollapsed tree
<ul style="overflow: visible; display: none;">
li></li>
<li></li>
<li></li>
<li></li>
<ul>