jQuery 我想在引导程序中使用多选,也称为选择

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19906376/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 00:47:46  来源:igfitidea点击:

i want to use multi select with bootstrap also called chosen

javascriptjquerytwitter-bootstrapmulti-select

提问by user2979082

I am sonal goyal . New in designing . I want to use multiple select also called 'chosen' in my html page. But enable to create code. I am using: 1- bootstrap 3.0

我是儿子戈亚尔。新设计。我想在我的 html 页面中使用多个选择也称为“选择”。但启用创建代码。我正在使用:1-引导程序 3.0

2- jquery 1.10.3

2-jQuery 1.10.3

In future backbone.js

在未来的backbone.js

I find this link chosen.but enable to find code. can you pls help me.

我发现选择了这个链接。但是可以找到代码。你能帮我吗。

Thanx

谢谢

回答by Tux

The code is on github if this is what you're asking > https://github.com/alxlit/bootstrap-chosenMake sure and check "example.html"

如果这是您要问的,则代码在 github 上> https://github.com/alxlit/bootstrap-chosen确保并检查“example.html”

回答by Krish R

<!-- Build your select: -->
<select class="multiselect" multiple="multiple">
<option value="cheese">Cheese</option>
<option value="tomatoes">Tomatoes</option>
<option value="mozarella">Mozzarella</option>
<option value="mushrooms">Mushrooms</option>
<option value="pepperoni">Pepperoni</option>
<option value="onions">Onions</option>
</select>

<!-- Initialize the plugin: -->
<script type="text/javascript">
$(document).ready(function() {
        $('.multiselect').multiselect();
});
</script>

Ref: http://davidstutz.github.io/bootstrap-multiselect/

参考:http: //davidstutz.github.io/bootstrap-multiselect/