I have a bunch of elements like:
..
I want to loop through all of them and get the highest
I'd go for this, using .map, .get and .sort:
.map
.get
.sort
$('.blah').map(function(){ return parseInt(this.id.split('-')[1], 10); }).get().sort(function(a, b) { return b - a; })[0];