Hi Jquery Guros,
I develop registeration form (in arabic).
I added "validator.addMethod" to check the firstname text.
I want to check that the "firstname" text must be in INGLISH leters OR Numbers(means, user can't insert arabic leters or anything else).
I added the script:
///////// chack firstname (English leter OR numbers)
$.validator.addMethod("firstname",function(value,element){
return this.optional(element) || /^[a-zA-Z0-9._-]{3,16}$/i.test(value);
},"Username are 3-15 characters");
:(
You can check the script at:
http://www.alnaddy.com/ldap/index1.php
Can anybody help me guys?
Thanks a lot.
Sam.
But dosn't work