My code is very simple:
<input id="myID" type="number" pattern="^\d*$">
Based on a famous online regex test website, it should only let me write numbers, like 1 and 123, but not strings like 1a and 2e.
Instead it lets me write the letter "e". I guess it's for scientific notation? I don't need it. I just need integer numbers. How can I do this?
I've also tried ^[0-9]*$ but it still lets me write the letter "e". This happens on Chrome.