如何告诉欧芹实例排除不可见的表单元素?
我在文档中找到了这一点:
data-parsley-excluded="input[type=button], input[type=submit], input[type=reset], input[type=hidden], [disabled], :hidden"
但是我现在不在哪里设置此选项?如何将这个选项解析为构造函数?
进一步的信息:我将欧芹与我的表格绑定在一起 jQuery("#formid").parsley();
非常感谢。招呼
要么做:
jQuery("#formid").parsley({ excluded: "input[type=button], input[type=submit], input[type=reset], input[type=hidden], [disabled], :hidden" });
或者
window.ParsleyConfig = { excluded: "input[type=button], input[type=submit], input[type=reset], input[type=hidden], [disabled], :hidden" };
<script src="parsley.js"></script>
(请参阅http://parsleyjs.org/doc/index.html#psly-usage-global-configuration)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句