Is there a quick way to set an HTML text input () to only allow numeric keystrokes (plus \'.\')?
2 solutions:
Use a form validator (for example with jQuery validation plugin)
Do a check during the onblur (i.e. when the user leaves the field) event of the input field, with the regular expression: