The ability to validate BEFORE a form is submitted greatly reduces end-user frustration by telling the user immediately what the issue is. The jQuery Validation plugin does just that. Here is a link to the plugin’s home page: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ This is a simple recipe for doing custom password validation: In the html head