jquery select all element with class and remove only last one code example Example: find last element with class jquery $('#test div.a:last')