File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
java script to validate decimal point
Joined: Nov 09, 2005
Nov 09, 2005 17:56:00
I need to validate a field to allow only decimal values
eg 10.2 or 10.0 or 10 is acceptable
It can have only 2 digits before the decimal point and can have only one digit after the decimal point. How can i check this.
Any sample code is helpful
Joined: Nov 08, 2001
Nov 09, 2005 20:05:00
I agree. Here's the link:
subject: java script to validate decimal point
Displaying data from right to left in a textbox
validation of input field
Regular Expression Help
How to count the number of digits after decimal point in java?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014