').length) {
error.insertAfter(element.closest('[data-bb-toggle="tree-checkboxes"]'));
} else if (element.parent('.input-group').length || element.prop('type') === 'checkbox' || element.prop('type') === 'radio') {
error.insertAfter(element.parent());
} else if ($(element).data('select2')) {
error.insertAfter(element.next('span'));
} else {
error.insertAfter(element);
}
},
highlight: function(element) {
$(element).closest('.form-control').removeClass('is-valid').addClass('is-invalid');
},
unhighlight: function(element) {
$(element).closest('.form-control').removeClass('is-invalid').addClass('is-valid');
},
success: function(element) {
$(element).closest('.form-control').removeClass('is-invalid').addClass('is-valid');
},
focusInvalid: false,
rules: JSON.parse('{\u0022email\u0022:{\u0022laravelValidation\u0022:[[\u0022Required\u0022,[],\u0022The email field is required.\u0022,true],[\u0022Email\u0022,[],\u0022The email must be a valid email address.\u0022,false]],\u0022laravelValidationRemote\u0022:[[\u0022Unique\u0022,[\u0022email\u0022,\u0022eyJpdiI6IjdHdStwKzBtc0RSSjRFdXlTd2VuV3c9PSIsInZhbHVlIjoiL1A3QXJ0SFNzQmFHbm1VR3B5cGZRc05tY3JYZHZialJuZVdSYk9ZdFdyZ1JueHhSOEM0SytzVC83VGtSRGJjQUh1MWxoRHBVaU1LNGxKeG40eWZ6Smc9PSIsIm1hYyI6IjMwOTFmMmNkNTdjMjJjMzdhZGU0ZDQ3OTViNzBkM2Y5YWM2NmFmM2EwYjYwODdkNDc1NjdmMTQxYzc3ZWQ2MzciLCJ0YWciOiIifQ==\u0022,false],\u0022The email has already been taken.\u0022,false]]},\u0022status\u0022:{\u0022laravelValidation\u0022:[[\u0022In\u0022,[\u0022subscribed\u0022,\u0022unsubscribed\u0022],\u0022The selected status is invalid.\u0022,false]]}}')
});
});
});
Your experience on this site will be improved by allowing cookies
Cookie Policy