I have a bunch of elements like:
..
I want to loop through all of them and get the highest
You want to use parseInt so numerical operators apply
parseInt
var id = parseInt($(this).attr('id').split('-')[1]);