jQuery: how to determine if element is last among siblings 

Joined:
02/21/2009
Posts:
172

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'))
});
Share |
| Comment  | Tags