Hello, I'm trying to do an operation on JS if a checkbox is checked, but I'm not getting success. Here is the code:
$('#btn-proximo').click(function(e){
if($('#in_acesso').is('checked')){
$('#div_valida :input').each(function(){
if(this.value == "" || this.value == " "){
e.preventDefault();
this.focus();
}
if($('#password').val() != $('#password_confirmation').val()){
$('#dados_gerais').preventDefault();
$('#erroSenha').show('fade');
setTimeout(function(){
$('#erroSenha').hide('fade');
},6000);
$('#password').focus();
}
})
}
})