Bootstrap-multiselect: Select All can not tagger the onChange function

Created on 22 Apr 2016  路  2Comments  路  Source: davidstutz/bootstrap-multiselect

$("#slt_car").multiselect({
buttonClass: 'btn btn-default btn-no-left',
buttonContainer: '

',
enableFiltering: true,
buttonWidth :'100%',
includeSelectAllOption: true,
selectAllText: "Select All",
onChange:function(element, checked){
console.log(element, checked);
})
//.....

when i click select all ,the function onChange do not run

question

Most helpful comment

733 Check this out.

Search for if (isSelectAllOption) {

and add this line after:

this.options.onChange($option, checked);

All 2 comments

733 Check this out.

Search for if (isSelectAllOption) {

and add this line after:

this.options.onChange($option, checked);

You should use onSelectAll in this case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SaeedSoltoon picture SaeedSoltoon  路  3Comments

rodrigonunes100 picture rodrigonunes100  路  3Comments

APM3 picture APM3  路  3Comments

bartclaeys picture bartclaeys  路  3Comments

zephyx picture zephyx  路  7Comments