Hello,
I've used the code below on many forms to suppress the Next button until all required fields are completed on the page, and it works well. However, I've found that it doesn't work when the last field on the page is an upload field. Has anyone run across this before?
Thanks in advance!
$("#form1").change(validate);
validate();
$('.cf-next-btn').click(validate);
$('.cf-prev-btn').click(validate);
function validate() {
if ($("#form1").parsley({excluded:":hidden"}).isValid()) {
$('.cf-next-btn').show();
}
else {
$('.cf-next-btn').hide();
}
}