Jquery引导程序使用optgroup进行多选 [英] Jquery bootstrap multiselect with optgroup

查看:63
本文介绍了Jquery引导程序使用optgroup进行多选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jquery bootstrap multiselect插件,看起来非常好,并且满足了我所需要的大部分要求。



附加功能是我想添加一个选项组在下拉列表中..

我使用Angular js ng-repeat绑定下拉列表如下所示



I am using Jquery bootstrap multiselect plugin which seems pretty good and fulfill most of the requirements which i needed.

The Additional functionality is that i wanted to add an option group's in the dropdown..
I am binding the dropdown using Angular js ng-repeat like below

<b> <select id="example-getting-started1" multiple="multiple"                        name="multiselect1[]" data-dropdownmultiselect>
                            <option ng-repeat="s in sourceRawTablesList" data-select-watcher data-last="{{$last}}" value="{{s.TableID}}">{{s.TableName}}</option>
          </select></b>





我告诉我的是下拉列表应该看起来像下面的url中的那个..

http://i.stack.imgur.com/Xyja3.png

----- ---------以上网址仅供参考..(查看本页图片)



这是我正在使用的代码出价多选下拉菜单。



我们非常感谢任何帮助..

先谢谢你们::)



I wnated that my dropdown should look like the one i.e. specifid in the below url..
http://i.stack.imgur.com/Xyja3.png
--------------above url is just for a reference..(checkout the image in this Page)

Here is the code that i am using to bid the multiselect dropdown.

any assistance in this is highly appreciated..
Thanks in Advance...:)

推荐答案

last}} value = {{s.TableID}} > ; {{s.TableName}} < / option >
< / select > < / b >
last}}" value="{{s.TableID}}">{{s.TableName}}</option> </select></b>





我知道我的下拉列表应该看起来像是特定的以下网址..

http://i.stack.imgur.com/Xyja3.png

--------------以上网址仅供参考..(查看此页面中的图片)



以下是我用于对多选下拉菜单进行出价的代码。



非常感谢任何帮助..

在此先感谢... :))



I wnated that my dropdown should look like the one i.e. specifid in the below url..
http://i.stack.imgur.com/Xyja3.png
--------------above url is just for a reference..(checkout the image in this Page)

Here is the code that i am using to bid the multiselect dropdown.

any assistance in this is highly appreciated..
Thanks in Advance...:)


似乎就像有人研究过与你一样的课程: Jquery bootstrap multiselect optgroup selection [ ^ ]
Seems like someone has studied the same course as you: Jquery bootstrap multiselect optgroup selection[^]


这篇关于Jquery引导程序使用optgroup进行多选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆