<input type='tel'/>
<input type='number'/>
<input type='email'/>
source: 
http://stackoverflow.com/questions/773843/iphone-uiwebview-how-to-force-a-numeric-keyboard-is-it-possible
:)

Use them carefully cause a zipcode in number only wouldn't work for UK zipcode 
for example

Remi

Le 27 nov. 2009 à 08:38, Mark Tomlin a écrit :

> I just wanted to share this all with you as it was a problem that
> plagued me for a little while.
> 
> When you want the user to input a number into the text field, you must
> set the name attribute to contain 'zip' or 'phone'.
> 
> For example:
> 
> <input type="text" name="phone_number" />
> or
> <input type="text" name="zip" />
> 
> When your user selects the field they will be presented with the
> iPhone's numeric keypad.
> 
> Apparently there are better solutions such as the CSS -wap-input-format.
> 
> Happy Programming!
> 
> Source: 
> http://www.bennadel.com/blog/1197-Defaulting-To-The-Numeric-Keyboard-On-The-iPhone.htm
> 
> --
> Thank you for your time,
> Mark 'Dygear' Tomlin;
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/iphonewebdev?hl=en.
> 
> 


Remi Grumeau
(+33) 663 687 206
http://www.remi-grumeau.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to