jQuery: how to determine if element is last among siblings
September 02, 2014 13:36:25 Last update: September 02, 2014 13:36:25
Use the
:last-child
selector. Example:
$('#users-table tr:gt(0)').each(function() { console.log('last: ' + $(this).is(':last-child')) });