Just loop over them:
var maximum = null;
$('.a').each(function() {
var value = parseFloat($(this).attr('x'));
maximum = (value > maximum) ? value : maximum;
});
More Related Contents:
- Why jQuery .load() is not working? [closed]
- What does [object Object] mean?
- Scroll Automatically to the Bottom of the Page
- Reload an iframe with jQuery
- jQuery click not working for dynamically created items [duplicate]
- Stop setInterval
- Finding line-wraps
- Determine Pixel Length of String in Javascript/jQuery?
- Add st, nd, rd and th (ordinal) suffix to a number
- How to build simple jQuery image slider with sliding or opacity effect?
- How to detect browser back button click event using angular?
- Using jQuery to compare two arrays of Javascript objects
- How to check if the URL contains a given string?
- Copy a variable’s value into another
- Creating a jQuery object from a big HTML-string
- jQGrid Column Chooser Modal Overlay
- Bootstrap 4: Uncaught ReferenceError: Popper is not defined
- Find all the days in a month with Date object?
- Best way to validate date string format via jQuery
- DOM Mutation event in JQuery or vanilla Javascript
- How to change URL in browser without navigating away from page?
- Get age from Birthdate [duplicate]
- How to get 30 days prior to current date?
- Uncaught TypeError: Cannot read property ‘msie’ of undefined [duplicate]
- jQuery Datepicker “After Update” Event or equivalent
- Force hide address bar in Chrome on Android
- Is there an “after submit” jQuery option?
- jQuery JSONP ajax, authentication header not being set
- Error: Permission denied to access property ‘handler’
- jQuery SVG vs. Raphael [closed]