aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to Validate a String for decimal number in java script ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to Validate a String for decimal number in java script ?" Watch "how to Validate a String for decimal number in java script ?" New topic
Author

how to Validate a String for decimal number in java script ?

chiranjib das
Greenhorn

Joined: Aug 04, 2003
Posts: 3
Can anybody provide me a java code or java script code for validating a String for decimal number ? Basically, There is a String for Money related stuff , i want to validate it whether its a decimal number or not
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
hint: regular expression or indexOf

Eric
 
 
subject: how to Validate a String for decimal number in java script ?
 
Similar Threads
validation of input field
How to validate a double value of length(6,2)
Decimals not converting to correct fractions
NPE on Load for a search box
Convert double (primitive) value to String