【发布时间】:2016-10-11 08:49:24
【问题描述】:
这可能是一个简单的问题,但我无法在任何地方找到答案或让它发挥作用。
我正在使用http://silviomoreto.github.io/bootstrap-select/ 插件。
当产品项目全选/取消全选时如何触发事件?我尝试过使用 jquery 点击并更改这样的事件:
$(document).on('click','#productCategory', function(event) {
alert("test");
});
这是我的选择列表:
<select id="productCategory" multiple data-actions-box="true">
<option>Laptop</option>
<option>Tablet</option>
<option>Computer</option>
</select>
【问题讨论】:
-
你想做什么告诉我
标签: jquery bootstrap-selectpicker