javascript - Delayed number boxes in Chrome -


i've noticed number input has delay in firing onchange event if press up/down arrow buttons inside box.

on other browsers mac safari , firefox, onchange event called immediately.

see here: https://jsfiddle.net/yyfvv0vg/

<input type="number" max="9999" min="1" onchange="change()"/> <div></div>  function change() {     $("div").html($("input").val()); } 

is there way force update immediately, or fact of life have deal with?

instead of onchange event try using onmouseup work.

it seems while put cursor on arrows in chrome, data updated until move cursor out of arrows, try using , down keywords , see i'm telling you, data inmediatly updated.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -