Getting the last row of a table using jQuery?
javascript, jquery
Solution
$('#yourtableid tr:last').attr('id');
Problem
I'm dynamically creating table rows. So each time I add a row, I need to get the ID of the last `<tr>` so that I can create a new `<tr>` with `ID = "(the last row's ID) + 1"`. Is there any way to get the last row's ID using jQuery?