We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的代码: js部分:
$form.on('focusin focusout', '.am-form-error select', function(e) {...}
html部分:
<select id="class_id" data-am-selected="{btnWidth: '60%', maxHeight: 200, placeholder: ''} required> <option value=""></option> <optgroup label="请选择一项"> <option value="1">选项一...</option> <option value="1">选项二...</option> </optgroup> </select>
如果select代码更改为如下,则可以通过验证,正常提示错误信息:
<select id="doc-select-1-1" required> <option value="">-=请选择一项=-</option> <option value="option1">选项一...</option> <option value="option2">选项二.....</option> </select>
为啥?
The text was updated successfully, but these errors were encountered:
这两个插件结合使用还没有调试过,你只能先用原生的 <select>。
<select>
Sorry, something went wrong.
对,原生的<select>可以。难道是事件绑定不正确?focusin focusout不适用于<select>?
通过<dropdown>如何实现<select>的功能? <dropdown>有状态吗?有值吗?
<dropdown>
参考 http://stackoverflow.com/questions/11232310/how-can-i-use-jquery-validation-with-the-chosen-plugin
下周再看一下这个问题。
resoves #756, Validator supports selected
e6ff183
relsoves #756, Validator supports selected
a41636c
e63fa9c
No branches or pull requests
我的代码:
js部分:
html部分:
如果select代码更改为如下,则可以通过验证,正常提示错误信息:
为啥?
The text was updated successfully, but these errors were encountered: