Hiya,
I'm trying to get a toggle effect but not quite sure how to do it or what to look for. (i jave Jquery loaded).
assume html similar to
<table class="left-dates">
<tr><td>All Dates</td></tr>
<tr><td>01 dec 2009</td></tr>
<tr><td>02 dec 2009</td></tr>
<tr><td>03 dec 2009</td></tr>
<tr><td>04 dec 2009</td></tr>
</table>
<div class="box 01-dec-2009">
foo
</div>
<div class="box 03-dec 2009">
bar
</div>
<div class="box 04-dec-2009">
foobar
</div>
Steps to take
- All div's are shown
- Clicking on a td for a date will hide all but the div with the class of the day clicked
- clicking "All dates" will show everything again
any idea how i could achive this cleanly? ideally using JQuery.