Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

validte amount with javascript?  RSS feed

 
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
Boost this thread!