Not running validation on the numbers in the input type="number"?
Did validation inputа type "TEXT" in js, the pattern used here is this: ^[0-9]+$.
Everything worked perfectly.
Then decided to change the input type to NUMBER and pattern is broken. Input not validated the signs "-" and "+".
What's the catch? Prompt who? As to forbid me to enter the pros and cons in the input of type number ?
The bottom line is that type="number" recording with two "-" or "+" or "." makes the value empty and based on this, hard pruning is unnecessary.
Therefore, the text is OK, or event - blur.
There is https://jsfiddle.net/kickerock/d2nLqcgh/2/