File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes validte amount with javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "validte amount with javascript?" Watch "validte amount with javascript?" New topic

validte amount with javascript?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 358
How can i in a easy way validay, that a amount not have non numeric caraters, and there must only be 2 digits after de decimal point.

[ March 21, 2006: Message edited by: Bear Bibeault ]
Jherald Lacambra
Ranch Hand

Joined: Feb 02, 2005
Posts: 129
use isNaN function to validate if the amount is a number or not.

I agree. Here's the link:
subject: validte amount with javascript?
It's not a secret anymore!