I\'m quite new to jQuery, and I\'ve written a simple function to check the strength of a password for each keypress.
The idea is that every time a user enters a char
I would suggest evaluating an existing jQuery password strength plugin. (unless your just doing it as an exercise)
Here are a few links I found:
http://www.visual-blast.com/javascript/password-strength-checker/
http://phiras.wordpress.com/2007/04/08/password-strength-meter-a-jquery-plugin/