Reputation: 25267
So, I want to validate price that user enters in my text field:
<input type="number" name="AdsCharges" placeholder="0.00" id="charges">
Conditions(or constraints):
Also, I have to keep in mind that this should be working on mobile too, as the app is going to be Phonegap based.
Thanks.
Edit: I tried this code, from here. But what happens is that, on web browsers (desktop), they work perfectly, I mean, dots are not allowed more than once. But, when I use it in my phonegap app, it is allowing multiple dots.
Upvotes: 0
Views: 452
Reputation: 14315
Try this :
<input type= "number" name= "five_steps" max= "30" min= "0" step= "5" value= "10" />
Upvotes: 1