Jump to content

Archived

This topic is now archived and is closed to further replies.

DrAwesomePhD

Creating a password checker like on this website

Recommended Posts

Hi, i was totally intrigued by the way this website checked your password automatically when you filled in the fields, if your two passwords matched it changed the border on the <div> to green from white, if they didnt it changed them to red...

I'm not too familiar with javascript, but could anyone help me please... and tell me how to do something like that? The main problem seems to be - when you deselect a password box, you have to make a check to see if they are the same... but how do you know when someone deselects the password box?

Share this post


Link to post
Share on other sites
hi

think it's the javascript onBlur event - it fires when the user clicks outside the form control. google it ;)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.