Hello,
I have a form that I have disabled the submit button until a list of check boxes are selected. I am having a few problems with my code and in need of some assistance:
1. The file upload feature enables the Submit button without any of the other criterias being met
2. The 'I agree' checkbox has to be the last box checked, or the submit button wont enable
3. After the submit button is enabled based on the checkboxes, if i uncheck one of the boxes, the submit button stays enabled
Code:
$(document).ready(function() {
$('.Submit').attr("disabled","disabled")
$('.Applicationchecklist').change(function () {
if($('input[type=Checkbox][value=Owner_auth]:checked').length >0)
if($('input[type=Checkbox][value=Pre-app]:checked').length >0)
if($('input[type=Checkbox][value=Disclosure]:checked').length >0)
if($('input[type=Checkbox][value=Agent_form]:checked').length >0)
if($('input[type=Checkbox][value=Proj_Nar]:checked').length >0)
$('.Legal').change(function () {
if($('input[type=Checkbox][value=IAgree]:checked').length >0)
{
$('.Submit').removeAttr("disabled");
}
else
{
$('.Submit').attr("disabled","disabled");
}
});
});
});