I have a form that is passing data to a cc processing terminal, as well as writing PDF contracts and receipts. There is validation built into the form, and I am trying to ad
You can you if you are using jQuery form validator
$(document).ready(function () { $("#addOfficerForm").submit(function () { var total_error = document.querySelectorAll('.error').length; if(total_error === 0){ document.getElementById("checkEditRestriction").disabled = 'true'; } }); });