I have a password field and confirm password, I want to check if both are the same.
NOTE: There is an autocomplete OFF for the email field
$(document).ready(function () {
$('#txtEmail').attr('autocomplete','off');
if( $('#txtSenha').val() != $('#txtSenhaConfirme').val() )
{
alert('Senhas diferentes');
return false;
}
});
No JS error, just does not work. NOTE: Even if you have corrected the typo, it has not yet been validated.