assets/js/pages/manage.js
// Note: Whenever a check is desired, add checkEmpty() to the control's "onblur", and name it's parent id as for example: personNameValidGroup
Whenever a check is desired, add checkEmpty() to the control's "onblur", and name it's parent id as for example: personNameValidGroup
Whenever a check is desired add checkEmpty () to the control ' s " onblur " and name it ' s parent id as for example : personNameValidGroup
function checkEmpty(element) {
    if (!element.value) {
        document.getElementById(element.id + "ValidGroup").classList.add("has-error");
    } else {
        document.getElementById(element.id + "ValidGroup").classList.remove("has-error");
    }
}
function checkEmpty ( element ) { if ( ! element . value ) { document . getElementById ( element . id + "ValidGroup" ) . classList . add ( "has-error" ) ; } else { document . getElementById ( element . id + "ValidGroup" ) . classList . remove ( "has-error" ) ; } }
Note: Whenever a check is desired, add checkEmpty() to the control's "onblur", and name it's parent id as for example: personNameValidGroup
Note : Whenever a check is desired add checkEmpty () to the control ' s " onblur " and name it ' s parent id as for example : personNameValidGroup