|
How do I take the last row of a table that has an id which not ends with a specific suffix?
I would take the last row of the table with id "table" that has that id does not end with "_DETAILS". So the row with id "row2_DATA". |
|
jQuery allows selector filtering with a simple syntax (http://docs.jquery.com/Selectors); using this syntax you can get the last tr which ID doesn't ends with "_DETAILS" just in one time, without looping the DOM:
So, if you need to get the content of that ROW:
which result is: 2 |


