Form validation check | CODE { The say foundation | project }
//File Namevalidatorchklist.js //============ Function to check field having no value =============== function blankCheck ( controlId , msg ) { if ( $ ( '#' + controlId ). val () == '' ) { // alert(msg); // alert(controlId); $ ( '.errMsg_' + controlId ). html ( msg ). show (); $ ( '#' + controlId ). addClass ( 'error-input' ); $ ( '#' + controlId ). focus (); return false ; } return true ; } //____________________________________________________________________ //Blade page: //employee Validate Message: let validateMsg = []; if ( ! blankCheck ( 'employerName' , 'Name can not be left blank' )) validateMsg. push ( "Name can not be left blank" ); // return false; /* if (!blankCheck...