[英]Drop-down Menu of Checkboxes in An HTML form
In HTML, what is the easiest way to create a drop-down list of checkboxes? 在HTML中,最简单的创建复选框下拉列表的方法是什么?
By this, I mean a user is able to select one Or many checkbox items from the drop-down. 这样,我的意思是用户可以从下拉列表中选择一个或多个复选框。
<select multiple="true" size="5">
<option>Option</option>
<option>Option</option>
<option>Option</option>
<option>Option</option>
<option>Option</option>
</select>
http://jsfiddle.net/hsL4z/ http://jsfiddle.net/hsL4z/
Select multiple while holding CTRL, otherwise make a scrollable div with regular checkboxes. 按住CTRL键的同时选择多个,否则将带有常规复选框的div滚动成为可滚动的div。
you can use https://github.com/scottwb/jquery.ui.dropdownchecklist . 您可以使用https://github.com/scottwb/jquery.ui.dropdownchecklist 。 Visit, https://code.google.com/p/dropdown-check-list , if you want to see how it looks like. 如果要查看外观,请访问https://code.google.com/p/dropdown-check-list 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.