I have a class .object which has an attribute called level. I want to get a list of all the different values of level on the page so I
.object
level
the selector
$(".object[level]")
will give you all the dom elements with class object and an attribute level.
object
Then you can just use the .each() method to iterate over the elements to get the highest value