I want to check the html input that works on all platforms, i.e. Chrome, Internet Explorer, Mozilla, Firefox, Safari and Opera for PC, as well as iOS and Android.
I want to limit the input to numbers between a certain range, for example (from 1 to 59). Also I have another input element in the same form. I also want to check if there is input 1 <Enter 2, otherwise enter the error message. Please help.
I tried the following two options that do not work on all platforms:
<td align="center"><input id="SH1" name="sh1" type="number" min="1" max="59" align="center" /></td> <td align="center"><input id="SM1" name="sm1" type="text" maxlength="2" onkeypress='return event.charCode >= 48 && event.charCode <= 57' /></td>
source share