📜  selectpicker 上的不显眼验证 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:55.330000             🧑  作者: Mango

代码示例1
$(function() {
    if ($(".selectpicker")[0]) {
        $(".selectpicker").selectpicker();
        $('.selectpicker').parents('form:first').validate().settings.ignore = ':not(select:hidden, input:visible, textarea:visible)';
    }
});