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
On top of gs' answer, you should check the password against common dictionary words (using a hash, probably). Otherwise a weak password like 'Yellow1' will be evaluated as strong by your logic.