Topic: Javascript html collapse?
Is there a javascript coder around here? I'm looking for a little twingie, and I can't get a clean good tutorial to work
This what I want to do: in the page header, I call to a javascript function. This function needs to: first collapse the XHTML elements (identified by their's XHTML's class, specified in the script), then insert an image or text buttonish link that will toggle (on/off) the collapse.
So I would have a :
<h3>some header</h3>
<ul class="plom">
<li>blabla</li>
<li>blabla</li>
</ul>
<p>some text</p>
So the whole unordered list is collapse with an UA with javascript enabled, and a button is inserted to toggle the collapse. If an UA has no javascript, nothing happen, the xhtml code stays clean.
I'm sure it's quite simple but...
Anyone got an idea?