Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validte amount with javascript?

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Frank
[ March 21, 2006: Message edited by: Bear Bibeault ]
 
Jherald Lacambra
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use isNaN function to validate if the amount is a number or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic