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

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -