简体   繁体   English

如何使用复选框下拉列表替换标准的多选选项

[英]how to replace standard multiselect options with checkbox dropdown

I want to replace standard multiselect options ( which we have to keep pressed command button and then select multiple options ) with checkbox dropdown (that when i check the item, all the checked items are displayed in the header). 我想用复选框下拉菜单替换标准的multiselect选项(必须按住命令按钮然后选择多个选项)(当我检查该项目时,所有选中的项目都显示在标题中)。

I have the following select options 我有以下选择选项

    <select multiple="" class="multimenu">
     <option value="a">Playing</option>
     <option value="b">Singing</option>
     <option value="c">Listening</option>
     <option value="d">Sleeping</option>
     <option value="e">Chatting</option>
   </select>

Now i want to replace the above such that there is a checkbox with each item.. and all the checked item(s), when checked, are displayed in the header. 现在,我想替换上面的内容,以便每个项目都有一个复选框..并且所有选中的项目在选中时都显示在标题中。

I just want to transform the functionality, interface just same as normal single select select options but the only difference is, there is a checkbox infront of each item,, and when i tick the checkbox, each of the ticked item(s) is displayed in the header. 我只想转换功能,界面与普通的单选选择选项相同,但唯一的区别是,每个项目的前面都有一个复选框,当我勾选该复选框时,将显示每个已勾选的项目在标题中。

How can i attempt the same..?? 我怎么能尝试同样的..?

If you want to handle your form data using a select box, but would prefer to display it to the user as a dropdown list with checkboxes for selecting each option, look no further than Dropdown Check List: 如果要使用选择框来处理表单数据,但希望将其作为带有选择每个选项的复选框的下拉列表显示给用户,请看下拉列表:

https://code.google.com/p/dropdown-check-list/ https://code.google.com/p/dropdown-check-list/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM