Hi @nolimits4web,
I’m trying to validate smart select if value is empty, any suggestion?
Use this tweak
$$(document).on(‘change’, “select”, function(e){
$$("select").forEach((el, i) => {
$$(el).hasClass('input-invalid') && $$(el).closest('.smart-select').find("#custom-select-error-msg").length == 0 ? $$(e.target).closest('.smart-select').append(`<div id="custom-select-error-msg" style="position: absolute; top: 40px; right: 15px;" class="text-color-red">${$$(e.target).closest('.smart-select').find(".item-input-error-message").text()}</div>`) : "";
});
e.target.value ? $$(e.target).closest('li').find("#custom-select-error-msg").remove() : "";
});