jQuery Match Password


/ Published in: jQuery
Save to your folder(s)

Check if passwords are the same on submit.


Copy this code and paste it in your HTML
  1. jQuery('#register form').submit(function(event) {
  2. if(jQuery('#password_2').val() != jQuery('#confirmpassword_2').val()) event.preventDefault()
  3. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.