Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在表单中使用 bootstrap selectpicker,还使用 jquery 验证插件来验证表单。
一切正常,只是它总是给选择框选择错误,即使选择了元素。如果我在没有 selectpicker 的情况下尝试它,那很好。
任何解决方案?
$("#form1").validate({ ignore: ":hidden:not(.selectpicker)" // or whatever your dropdown classname is });