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