3

i have the following questions for html5 mobile textbox.

  1. is there any option to open number keyboard for ios and android platform if the input is type="text".

  2. issue i am facing here is, if the textbox is type="number", not able to append $, % symbols dynamically in the textbox(to reproduce this open html page in android or ios browser)

    is there any option to include $, % symbol in the textbox, if type must be type="number" the value not appearing in safari,chrome and android browsers.

Sample:

http://jsfiddle.net/bharathid/bFk9c/

open the above URL in firefox it's working fine, but while opening in chrome value disappeared.

Note:

in my case not like to use $, % symbol in separate span.

Reference:

iOS5 show numeric keypad by default without using type="number" or type="tel"

2
  • 1
    If You Want Only Number Key Bord I think You should go with user @Madhu answer.. i will work fine.... Commented Mar 14, 2014 at 5:56
  • Thank you user @Don't B Negative... i am not Negative... Just Joking.. Commented Mar 14, 2014 at 5:59

1 Answer 1

8

Try this...

<input type="number" />
<input type="tel" />

Both of these present the numeric keypad when the input gains focus.

Everything else seems to bring up the standard keyboard.

you can see this For iOS

without using those we cant use any numbers key board... insence of Both iOS and ANDROID.

Sign up to request clarification or add additional context in comments.

6 Comments

i am asking in html5 page. not a android page.
Can You Show that... I mean at the Part of HTML Code Where you are mentioning Key Board.. If its Default or 3rd Party Browser.. we many not Use this.. if its Your own Web view or web browser(negative browser) it will work...
if we are used type="number" it open number keybord by default, if we used type="text" it will open a normal keyboard.
yes it will be there for android But for window i dont know... and its also there for black berry,,,
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.