【发布时间】:2018-09-11 19:51:42
【问题描述】:
If 没有阻塞 else 语句的执行。请帮忙!
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");
}
});
}
【问题讨论】:
标签: jquery if-statement each