I working on a sign up page which consists of several fields, all i wanna know how can i remove/hide the text from Password Confirmation textbox. when password and retype password does not match.
Here is my Code
$('#txtConfirmPassword').blur(function() {
if ($('#txtConfirmPassword').val() != $('#txtPassword').val()) {
$('#spPasswordConfirmation').html('Password and Retype Password does not match.');
} else {
$('#spPasswordConfirmation').html('')
}
});