Answer the question
In order to leave comments, you need to log in
How to disallow certain characters in input?
In input number now you can enter "+", "-", "." how can it be banned? Maybe a regular expression
Answer the question
In order to leave comments, you need to log in
By event , "input"
replace value
with a positive integer value:
Newans: remember the previous valid value, so that, if anything, if NaN, do not reset the field, but return to the last normal one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question