Select last 5 elements with jQuery

Yes, you can get the div elements, and then use the slice method to get the last five:

var e = $('#someelement > div').slice(-5);

Leave a Comment