= $('#Form_Form'); if(!){ return; } // On load, wire each error message to its field for screen readers (WCAG 2.2 AA: // aria-invalid + aria-describedby) without moving focus. { var = $(this); var = ; if(!){ return; } var = ; if(!){ return; } if(!){ || 'field') + '_error'); } ; var describedby = ; if(!describedby || describedby.indexOf() === -1){ + ); } }); function clearFieldError(){ var = ; if(!){ return; } // Only clear once the field actually has a value (don't hide "required" // while the field is still empty). var val = ? : (( || '') + '').trim(); if(!val){ return; } var = ; if(){ // Detach the stale message and drop its aria link. var msgId = ; { var = $(this); ; if(msgId){ var db = ( || '').split(' ') .filter(function(t){ return t && t !== msgId; }).join(' '); if(db){ ; } else { ; } } }); ; } ; } // Delegate so it also covers the composite password/confirm subfields. { clearFieldError($(this)); }); })(); });