Is it possible to select the last 5 child divs of an element?
Sure, you could use the .length property of a selector to get the count, and then use the :gt(n) selector to get the last 5.
.length
:gt(n)
var o = $("div.container > div:gt("+($("div.container > div").length-5)+")");