iphone - automatically pop up keypad on a form with java/html/css/javascript? -


I have a form that I want to fill the user and allow me to pop up the keypad Keep it when they hit a JSP page before tapping on the input box, then first. What is the special tag to achieve this? (Note that this is not an objective CE app)

Also, it is possible to set the timer, such as: 3 seconds, then pop up the keypad rather than immediately popping up.

Thank you in advance.

This should be done for an HTML page input field automatically) ... type < Code> yourFormElement.focus (); or yourFormElement.select () ;; should work.

Specifically, you can take advantage of HTML 5 and specify things like:

  & lt; Input type = "number" /> & Lt ;! - Opens in keyboard number mode - & gt;  

It is not going to break anything, since browsers do not understand "number" as some form of a fallback, as the default in "text".

Note: There are various possibilities to set this up (but here's a quick example):

HTML:

  & lt; Input id = "yourIDgoesHere" />  

Vanilla JavaScript (provided after the field):

  & lt; Script type = "text / javascript" & gt; Document.getElementById ('yourIDgoesHere') focus () .; & Lt; / Script & gt;  

Use of jQuery:

  & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# yourIDgoes here'). Focus ();}); & Lt; / Script & gt;  

Comments