Edit & Run
Depending on browser support: Numeric restrictions will apply in the input field.
Note: type="number" is not supported in IE9 and earlier.