I have an input element of the type number
and prefilled with a zero.
Now i want to trigger some JS everytime the value changes…but
- It should not be triggered if the user presses backspace fort deleting the initial zero.
- It should be triggered if the user uses the arrows awailable for number fields
So this is not working because its getting triggered on backspace:
on(document, "change keydown", ".mynumberfield", function (e) {
...