JSFiddle - React, Tailwind, and code Playground
by karim79
HTML
<input type='text' value='25' />
<input type='text' value='0' />
<input type='text' value='45' />
<input type='text' value='-2' />
JavaScript
var arr = $('input').map(function() {
return this.value;
}).get();
alert(Math.max.apply(Math, arr));