user1995781
user1995781

Reputation: 19463

cordova numeric keypad input

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?

Upvotes: 0

Views: 1511

Answers (2)

user5570620
user5570620

Reputation:

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

      <input type="number"/>

Upvotes: 1

shashank
shashank

Reputation: 31

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"

Upvotes: 1

Related Questions