jquery check if element is last option code example Example: find last element with class jquery $('#test div.a:last')