Answers for "jquery maximum value of an element by class"

0

jquery maximum value of an element by class

var maximum = null;

$('.a').each(function() {
  var value = parseFloat($(this).attr('x'));
  maximum = (value > maximum) ? value : maximum;
});
Posted by: Guest on September-24-2021

Code answers related to "jquery maximum value of an element by class"

Code answers related to "Javascript"

Browse Popular Code Answers by Language