html5 input type number with regex pattern in mobile
If you only specify “type=number” it will display keypad on iPhone like: And if you specify pattern like <input type=”number” pattern=”\d*”/> or <input type=”number” pattern=”[0-9]*” />, then keypad on iPhone will be like : Still it cannot display dot(.), currently there is no pattern to handle such case. So you may opt for <input type=”tel” … Read more