assets/js/validation.js
// Remove All Error Messages To Start Validation From Scratch

Remove All Error Messages To Start Validation From Scratch
Remove All Error Messages To Start Validation From Scratch
function remove_error_nodes() {
  var errors_area = document.querySelectorAll('form .input-gp .error');
  if (errors_area.length > 0) {
    errors_area.forEach(area => {
      area.remove();
    });
  }
  document.querySelectorAll('.input-gp .invalid').forEach(el => {
    el.classList.remove('invalid');
  });
}
function remove_error_nodes ( ) { var errors_area = document . querySelectorAll ( 'form .input-gp .error' ) ; if ( errors_area . length > 0 ) { errors_area . forEach ( area => { area . remove ( ) ; } ) ; } document . querySelectorAll ( '.input-gp .invalid' ) . forEach ( el => { el . classList . remove ( 'invalid' ) ; } ) ; }
Remove All Error Messages To Start Validation From Scratch
Remove All Error Messages To Start Validation From Scratch