jQuery UI Widgets › Forums › Editors › NumberInput › question on 'change' event in jqxinput
Tagged: javascript input, jQuery Input, jqwidgets input
This topic contains 1 reply, has 2 voices, and was last updated by Todor 3 years, 10 months ago.
Below is three samples I have created to test the ‘change’.
The logic is to cancat ‘1’ in the input string.
http://113.52.135.193:8080/test/input.html — pure javascript
http://113.52.135.193:8080/test/jqxinput_3.7.1.html — jqx 3.7.1 is used
http://113.52.135.193:8080/test/jqxinput_8.1.4.html — jqx 8.1.4 is used
When I tried to input ‘a’ in the input box, the first two give me the correct result ‘a1’
But the third one give me an infinite loop ‘a1111111111’
Thanks for your help
Kanny
Hello Kanny,
In the latest version(8.1.4) is the wanted behavior, because when you change the val of the input a new event is triggered. I’ve made an example with a workaround about your issue. Please review it whether it fits your needs.
Let us know if you need further assistance.
Best Regards, Todor
jQWidgets Team https://www.jqwidgets.com
You must be logged in to reply to this topic.