javascript - max value of an input 999999, but allows pasting more than that in IE broswer -
i have maximum value in input 999999. used onkeypress="return iscurrencynominus(event, this, 0, 999999, false);" , works in firfox , doesn't allow pasting more that, in ie allows pasting more value above. should use maxlenght="6"
you should use min , max property ie 10:
<input title="enter number" type="number" min="0" max="100" step="2"> here useful polyfill: https://github.com/jonstipe/number-polyfill
Comments
Post a Comment