It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming JavaScript Forum

Limit maximum number of a same character

Limit maximum number of a same character

Postby Slim Pockets on Mon May 04, 2009 7:17 pm

Hi,
is there a way to limit maximum number of the same character that user can input into a text field.Let's say if someone wants to register an account like this:
sssssssssssssssss

or like this:
ddddddddaaaaaaaaaaasssssssssssssss
or like this:
111111111aaaaaa2222222222222222
how to limit them to use no more then 3 letters/digits from a same type
Slim Pockets
 
Posts: 1
Joined: Mon May 04, 2009 7:08 pm

Return to JavaScript Forum

Who is online

Users browsing this forum: No registered users and 3 guests