letters or numbers only in a password with jquery

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-03-29T11:56:20Z Indexed on 2010/03/29 12:03 UTC
Read the original article Hit count: 588

Filed under:
|
|
|
|

Hi,

I found this code for alphanumeric check ("Letters, numbers, spaces or underscores") but I want to change so I will be able to write only letters or numbers. Can anyone tell me how to change this code:

function(value, element) {
    return this.optional(element) || /^\w+$/i.test(value);}

Thanks!

Greg

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html