jQuery: Selecting all elements where attribute is greater than a value

You can do this using the function overload of .filter(), like this:

.filter(function() {
  return $(this).attr("attrName") > "someValue";
})

Leave a Comment