How do I check if an element is the last sibling?
For the last cell in a row I want to perform a different action.
This doesn\'t work:
$(\'td
you can code this way.
var $this = $(this); if($this.index()==$this.siblings().size()-1) { alert("It's the last."); }