asked on December 5, 2022
•
Show version history
Hi, I am trying to use this code
$("#form1").change(validate1); validate1(); $('.cf-next-btn').click(validate1); $('.cf-prev-btn').click(validate1); function validate1() { if ($("#form1").parsley({ excluded: ":hidden" }).isValid()) { $('.cf-next-btn').removeAttr('disabled'); } else { $('.cf-next-btn').attr('disabled', true); } }
but if failed to validate require Upload field.
the next button appear and at the end, when press submit, it submit the forms even if the upload required fields is empty.
do someone can help to figure out why this behavior happen
0
0