Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number Validation 2

Status
Not open for further replies.

KOVMoe

Programmer
Jun 30, 2004
34
US
I need to limit the number input into a field to less than 1,000,000. The user might enter the infroamtion as 99999, or 22,222, and so on.

I have tried this:

var objChk2 = /^(\d{0,2}\,\d{0,3})$/;
but that will not allow numbers less than 10,000

then i tried
var objChk5 = /^(\d\d\,\d\d\d)$/;
but it will not allow any thing less than 1000

Any ideas would be GREAT!


Thank you,

[king]Moe-King of the Village Idiots.

"When in trouble,
when in doubt;
Run in circles-
SCREAM & SHOUT!!"
Burma Shave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top