/ Published in: jQuery
Check if passwords are the same on submit.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery('#register form').submit(function(event) { if(jQuery('#password_2').val() != jQuery('#confirmpassword_2').val()) event.preventDefault() });