I am trying to do a simple checkValidity of a numeric input field when blurring, but cannot make it work correctly. Does it still work in Chrome? For instance:
<input onBlur="checkValidity()" type="number" name="x" id="x" min="64" max="2048" value=64>
or
<input onBlur="this.checkValidity()" type="number" name="x" id="x" min="64" max="2048" value=64>
Seems to be doing nothing. However, in the console,
$("#x")[0].checkValidity()
returns true or false based on the current value in the input field and the limits above (64,2048). Is it broken or am I doing it wrong?
source share