Iphone input type (two decimal number)

I am developing an iphone application with telephony, this means my application is in html5, javascript and css. I have a form with a field for the weight on the object. I am trying to get an input type similar to;

<input type="time"/>

Html5 supports various types of input, and this will switch another keyboard for iphone, for example, a numeric keypad for numbers. The one I'm looking for is the one where you can roll vertically above numbers. For example, when you set the alarm on iphone, the example is below.

http://blog.ringtonefeeder.com/wp-content/uploads/2009/01/iphone-alarm.png

The input type = "time" gives me this, but it is limited to a 24-hour window and a 1-59-minute window.

Is there a way to configure this type of input so that I can get 2 decimal number? in the range of 0999.99 kg.

I understand that this is a vague question, but it is difficult to explain.

+4
source share
2 answers

As far as I know, in the world of PhoneGap there is no way to do this. You can view the available keyboards here . You could probably roll your own if you can in objective-C, but then you will have to create a plugin for it so PhoneGap can see it.

One of the keypads not shown on this page is UIKeyboardTypeDecimalPad, which is a telephone keypad with numbers and decimal point, which can also work for your application. Shown here:

UIKeyboardTypeDecimalPad

However, I was not able to figure out how to show this via HTML.

If you want to use the phone keypad, you must use:

<input type="tel">

, , :

<input type="number">

( -, , , ), UIKeyboardTypeDecimalPad, :

<input type="decimalNumber">
+2

All Articles