$(document).on("input propertychange", "select[lay-search] ~ div input", function () {
                if ($(this).val() == "") {
                    //清空原选项值
                    $("#Type").val('');
                    //清除layui选中状态
                    $(this).parent().next().find(".layui-this").addClass(" layui-hide").removeClass("layui-this"); 
                }
            });

 

相关文章: