0

Sometimes on certain field we need only decimal number to be inserted. How can we get the phone to display numeric keypad instead of normal keyboard to enable user easier enter the numeric input?

user1995781
  • 19,085
  • 45
  • 135
  • 236
  • something like [this](http://stackoverflow.com/questions/25425181/iphone-ios-presenting-html-5-keyboard-for-postal-codes)? – R P Nov 22 '15 at 09:37

2 Answers2

1

Try using type ="number" on the input tag. *For HTML5*

<input type="number">

Experiment with options for type attribute, that are documented HERE

NOTE: New HTML5 input types, that are not supported, will just fallback to type="text"

shashank
  • 31
  • 3
1

For a numeric keyboard, you need to set its type to number

      <input type="number"/>