<input type='tel' />
A numeric keypad will appear on Android, WP8 and iPhone by default, as well as Chrome for Android. In my Android browsers, non-numeric characters are deleted.
<input type='number' />
should work great for floats. In both Android browsers, it also automatically removes the leading zeros of onblur.
source
share