The Scenario:
I would like to fire the function checkDOMChange (which hides ul tags that are empty)
once an input is filled and unfocussed but currently, the function is not being called. Here is a fiddle.
function checkDOMChange() {
if ($("div[id$='DoIQualify_financials'] div").hasClass("field-invalid")) {
if ($('.borrower1Salary_errors li').length == 0) {
jQuery("ul.borrower1Salary_errors").hide();
}
if ($('.borrower2Salary_errors li').length == 0){
jQuery("ul.borrower2Salary_errors").hide();
}
}