我正在尝试使用由choosen.js生成的select下拉列表在表单上设置验证
下面是我的代码:
$('.chzn-single').bind("change", function(){
$myform.validate().element($(this));
});我认为这样的东西可以工作,但我没有任何成功。有什么想法吗?
谢谢
发布于 2014-10-10 06:41:33
尝尝这个。
在验证时:
ignore: function(index, element) {
return !!$(element).parents(':hidden').length;
}
在选定的选项上:
$('.chosen-select').chosen().change(function() {
$(this).trigger('click');
});
https://stackoverflow.com/questions/12468313
复制相似问题