Can we turn on the iphone's number keyboard WITHOUT using type=number?

Posted by Simple As Could Be on Stack Overflow See other posts from Stack Overflow or by Simple As Could Be
Published on 2011-01-12T21:49:36Z Indexed on 2011/01/12 21:53 UTC
Read the original article Hit count: 144

Filed under:
|

I'm making a webapp, and I'd like an input field to show the Iphone's number keypad. I understand that type=number will make the keypad show the way I'd like.

The trouble is that type=number does not support placeholder text. So if I would like this:

Expiration Date: [eg: 2010]

I can not get it to work, and also show the right keyboard.

Is there a way to force the iphone keyboard into number mode without using the number input type?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about html5