Posted By

vagrantradio on 02/18/11


Tagged

password


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

mattvbiggs


jQuery Match Password


 / Published in: jQuery
 

Check if passwords are the same on submit.

  1. jQuery('#register form').submit(function(event) {
  2. if(jQuery('#password_2').val() != jQuery('#confirmpassword_2').val()) event.preventDefault()
  3. });

Report this snippet  

You need to login to post a comment.