I am trying to prevent the user entering non-numeric characters into an input field. However, the user can still type these in... What am I missing??
<input type="number" size="5" id="ActionNo" min="3" max="10" step="1" pattern="^[0-9]{0,2}$" title="Numbers only, please." maxLength="2" />
The error message also does not pop up when invalid characters are input
Do I have to write a function when a user inputs a character to check that it is valid. If I have to do how do I stop the input box loosing focus?
I am using VBScript as the language for this HTA