http://access2learn.com/tutorial/java...
Using this technique you can check form fields as the user types. This allows you to do things like check to see if the two fields match (like a password/password verify set), or other things. This is a good little test that can be used in various other instances, and shows the power of selectors, this, and the keyup event handler in JavaScript and jQuery.