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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -