Answer the question
In order to leave comments, you need to log in
Doesn't validate for numbers in input type="number"?
I did the validation of the "TEXT" type input in js, I used the following pattern: ^[0-9]+$.
Everything worked great.
After that, I decided to change the input type to NUMBER and the pattern broke. The input does not validate the "-" and "+" signs.
What's the catch? Who will tell? How can I prevent pluses and minuses from being entered into an input of type number ?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question