On page load lists (more than one) similar to the following are loaded…
[code]
<div>
<ul>
<li class=”open”>Foo <a href=”url”>foo link</a></li>
<li class=”shut”>Bar <a href=”url”>bar link</a></li>
<li class=”shut”>Fud <a href=”url”>fud link</a></li>
</ul>
</div>
…then i have some css similar to this…
[code]
li.open a {display:inline}
li.shut a {display:none}
now, i want to build a function that switches the elements class between “open” and “shut” onclick, and if it switches it to open, then it switches all other elements of that specific list to shut without affecting other lists on the page. I can’t seem to wrap my head around it even though i’m positive i’ve seen it done before…