Is there a
mode: "number"
option for jquery.mobile.simpledialog.js?
I.e: I need to ask user for a number, and I would like mobile keyboard to be in “numerical-only mode”…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To display the numerical keyboard, add
type="number"to aninputtag. In SimpleDialog, you could use a freeform display, something like:On a browser that supports it, when trying to enter something in the
inputtag, you’ll get a number keypad. This won’t limit a user on a desktop browser from entering text though. You’d have to check for that separately.See this jsFiddle example.