I need to set up jquery to cycle through tables, making sure it shows/hides the right one.
The basic HTML structure is:
<p><a href="#" class="month-next">Next Month</a></p>
<table class="month-show"><tr><td>blurb</td></tr></table>
<table class="month-hide"><tr><td>blurb</td></tr></table>
<table class="month-hide"><tr><td>blurb</td></tr></table>
<table class="month-hide"><tr><td>blurb</td></tr></table>
etc
So in jQuery so far I have:
$(".month-next").click(function () {
$("table.month-show").hide();
HERE I NEED SOME CODE TO ONLY SHOW THE NEXT TABLE IN THE HTML .show();
return false;
});
you might also want to change the classes, so that the next call will function as well (edit: inserted changes suggested by Mark Schultheiss):