View Single Post
  #6 (permalink)  
Old July 29th, 2003, 04:07 AM
pgtips pgtips is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try this regexp for validating decimals:
Code:
if (!(/^\d+\.?\d*$/.test(fn)) ) { alert ("Please enter Numeric Value ");  }
Reply With Quote