iPhone+HTML: How to have a textbox for which iPhone entry switches to number block

On my webpage for an iPhone I have textboxes (html form input fields type "text") in which the user can enter only numbers. When displayed on an iPhone as soon as the focus is on that text box the iPhone offers a keyboard for text entry. The problem is that it displays the keyboard for characters not digits.

How can I make the iPhone switch to the digit keyboard straight away without showing the charcter keyboard? Is there a Javascript solution or do I have to set something in my HTML code?

Regards,
Dirk.
dirkil2Asked:
Who is Participating?
 
Gurvinder Pal SinghCommented:
0
 
dirkil2Author Commented:
I am still waiting for my iPhone to try it out. So bear with me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.