[jQuery] am I in the last table row?
Hi, I have this HTML code
<table>
<tr><td id="1" class="tab">...</td></tr>
<tr><td id="2" class="tab">...</td></tr>
<tr><td id="3" class="tab">...</td></tr>
<tr><td id="4" class="tab">...</td></tr>
</table>
and have defined this function
$('td.tab').click( function() {
...
});
What I want to do is determine within the function if the user clicked
on the last table row (in the above example, the table row with
id="4"). The ids are not fixed, I just included them to illustrate
what I want to do.
Thanks, - Dave