Just wondering whether anyone knows what events an HTML5 <input type="number" />
element fires when it's up / down arrows are clicked:
I'm already using an onblur
for when the focus leaves the input field.
Just wondering whether anyone knows what events an HTML5 <input type="number" />
element fires when it's up / down arrows are clicked:
I'm already using an onblur
for when the focus leaves the input field.
onchange
would be the event that is fired when the field's value changes.
I think the HTML5 event oninput
would also fire.
The onchange
event fires on blur but the oninput
event fires as you type. Maybe you might want to put a timer on the oninput
event and fire your onchange
event when the user has stopped typing for a second?