If is not blocking the execution of else statement. Help plase!
function checarZero() {
$(".ps-form-entry--progressbar").each(function () {
var valorPerc = $(this).val();
if (parseFloat(valorPerc) === 0) {
psLib.NotifyShowHide(
'alert:Você não distribuiu a renda vitalícia.');
event.preventDefault();
} else {
$("#btn-continuar").fadeIn("fast");
}
});
}
Aucun commentaire:
Enregistrer un commentaire