【发布时间】:2015-09-04 19:24:08
【问题描述】:
http://www.bootstrap-switch.org/examples.html
我正在使用 Indeterminate 开关(使复选框保持在真假之间)。问题是开关默认为true。
基本上我希望该字段以 nil 形式提交,除非用户特别选择 true 或 false。
【问题讨论】:
标签: jquery twitter-bootstrap bootstrap-switch
http://www.bootstrap-switch.org/examples.html
我正在使用 Indeterminate 开关(使复选框保持在真假之间)。问题是开关默认为true。
基本上我希望该字段以 nil 形式提交,除非用户特别选择 true 或 false。
【问题讨论】:
标签: jquery twitter-bootstrap bootstrap-switch
杰克逊这就是你所需要的吗?
切换的用途相同。
<label>
<input type="checkbox" checked> Checked
</label>
<br><br>
<label>
<input type="checkbox" unchecked> unChecked
</label>