Adding "validator.addMethod", but dosn't work, any help guys
Hi Jquery Guros,
I develop register form (in arabic).
I added "validator.addMethod" to check the firstname text.I want to check that the "firstname" text must be in INGLISH leter and Numbers(means, user
can't insert arabic leters or anything else).
I added the script:
///////// chack firstname (English leter OR numbers
<b>$.validator.addMethod("firstname",function(value,element){
return this.optional(element) || /^[a-zA-Z0-9._-]{3,16}$/i.test(value);
},"Username are 3-15 characters");</b>

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