View Single Post
Old February 11th, 2008, 03:58 PM
everest everest is offline
Authorized User
Join Date: Mar 2004
Location: , , .
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Default reg. exp. for up to 2 decimal places

i need to allow only numbers and up to 2 decimal places. is there a way to do it using reg.exp in javwscript? if you have sample code, that would be great.