i am trying to write an archive list that is collapsable and organized by month. im sure youve seen something identical on many sites as its pretty commonplace. i just dont know a lick of javascript.
i have my list laid out like this:
i want the month names to be links that will collapse or show the child lists, anyone know how i could do this? thanks!
i have my list laid out like this:
HTML:
<ul>
<li>month1
<ul>
<li>article1</li>
<li>article2</li>
<li>etc...</li>
</ul>
</li>
<li>month2
<ul>
<li>article1</li>
<li>article2</li>
<li>etc...</li>
</ul>
</li>
</ul>
i want the month names to be links that will collapse or show the child lists, anyone know how i could do this? thanks!