How to check if an item is the last sibling?
For the last cell in the row, I want to perform another action.
This does not work:
$('td').each(function(){ var $this = $(this); if ( $this === $this.parent().last('td') ) { alert('123'); } })
And also if I remove .parent()
.
jquery
Haroldo Apr 21 '10 at 9:13 2010-04-21 09:13
source share