Decimal point on the numeric keypad on iphone in Phonegap / Cordova

I am developing an iPhone application where I need to insert values ​​with a decimal point. I tried step = "any" or step = "0.01" or but did not show the decimal point on the numeric keypad. I use phone gap / cord.

My current line of code looks like <input name="abc" pattern="\d+(\.\d*)?" type="number">

Please, help!! thank.

+4
source share
1 answer

Try using a template for your input type = number field

pattern="\d+(\.\d*)?"

, / . -, onblur - ( ). type = "number", pattern = "\ d + (.\D *)?"

IOS,

iPhone - ( UIWebView)

+4

Source: https://habr.com/ru/post/1537458/


All Articles