lundi 30 mars 2015

Allow decimal point type="number" in html5

i am working on a phonegap application and i have field called 'Amount'. I have the type for this as number. but the problem is i cannot enter a decimal value.All it shows it the numbers but no decimal point.Is there a way to fix this.is there a way to show the decimal point in the nmber keyboard.


my code



<input type="number" step="any" placeholder="Amount" style="text-align:right" id="amount" name="amount" ng-model="data.amount" ng-maxlength= "10" class="form-control" decimal-places onkeypress='return event.charCode >= 48 && event.charCode <= 57 || event.charCode == 46' required>

Aucun commentaire:

Enregistrer un commentaire