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


Win a copy of Spring in Action this week in the Spring forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to Validate a String for decimal number in java script ?