如何添加全选/取消全选到selectpicker类?

时间:2018-11-13 09:37:05

标签: c# html twitter-bootstrap

我正在通过ASP.NET-MVC开发Web应用程序。
HTML:

@Html.DropDownListFor(x => x.TEST, (SelectList)ViewBag.testMasterList, null, new { id = "dropDownListTest", title = "[--Select the TEST--]", @class = "selectpicker", data_style = "btn-info", data_width = "fit", data_live_search = "true", data_selected_text_format = "count > 4", data_size = "9", multiple = "multiple" })


图片:
enter image description here

我可以添加data_live_search,但是我不知道如何将select / deselect全部添加到selectpicker。
请问有人可以帮我吗?

0 个答案:

没有答案