For this HTML code:
<table>
<tr><td>Visible</td></tr>
<tr><td>Visible</td></tr>
<tr><td>Visible</td></tr>
<!-- etc... -->
<tr style="display:none"><td>Hidden</td></tr>
<tr style="display:none"><td>Hidden</td></tr>
<tr style="display:none"><td>Hidden</td></tr>
<!-- etc... -->
<tr><td><a class="show-5-more">Show 5 More</a></td></tr>
</table>
Here is the jQuery code I've got so far:
//show 5 more table rows (that were previously hidden)
$('a.show-5-more').click(function() {
alert('clicked!');
return false;
});
How can I do this:
- Select the first hidden table row, then
slideDown()
the table row - select the next one, slide it down
- select the next one, etc...
- I want to do this for 5 hidden table rows