Home jQuery .change() function heavily delayed with number-input
Reply: 0

jQuery .change() function heavily delayed with number-input

user754 Published in March 23, 2018, 9:00 am

I have an issue with the .change() function in JQuery in combination with an input of the type "number".
Quick and dirty mockup that gets the point across:
JSfiddle: https://jsfiddle.net/vtuk69bj/


As you can see if you use the arrows inside the input to increase/decrease numbers quickly (or even not so quickly), the function is incredibly delayed in some cases.

I know I could use stuff like keyup or click, but that wouldn't cover both the option to increase/decrease with arrows or straight up input a number yourself. Is there some way to cover all my bases without having 2-3+ different functions?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.356544 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO