jquery check if dom element is last code example Example: check if element is last child jquery $j("#elementToCheck").is(":last-child")