ios - Decimal point on numeric keypad on iphone in Phonegap / Cordova -


I am developing an iPhone application where I need to insert the value with a decimal point. Also tried "or step =" 0.01 ", but it does not show decimal point on numeric keyboard. I am using phone inter / cordova.

The code of my current code & lt; Input name = "abc" pattern = "\ d + (\. \ D *)?" Type = "number" & gt;

Please help !! Thank you.

Try using the pattern in your input type = "number" field < pre> pattern = "\ d + (\. \ d *)?"

This will bring the full keyboard but the default in the number / symbol panel. The user can still switch to Alphanumeric, but on the OnBlur event, the pattern kicks and removes any alphanumeric characters (but numbers). It should be both types = "number" and pattern = "\ d + (. \ D *)?"

But if you are developing for iOS then you will find this question useful



Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -