Check password and confirm password match using jQuery

We are checking on the onBlur event of confirm password textbox that the value of password and confirm password match or not.

Password
<input name="pass" type="password"  id="pass" class="span12" required >
Confirm Password
<input name="cpass" type="password" id="cpass" class="span12" required onBlur="
if(($('#pass').val())!=($('#cpass').val())) { alert('Password and Confirm password must match');
$('#cpass').val('');
$('#cpass').focus();
}" >



Comments

  1. Hi Ketan Onkar Here ... great Blog .. Keep it Up !!!

    ReplyDelete

Post a Comment

Please feel free to comment. I would love to hear feedback.