Thwoi Hla
Thwoi Hla

Reputation: 1

Bootstrap-multiselect onChange event doesnt fire on select all or deselect all

When I select Select All - the change event should automatically get called, But its not working.When I select one by one, change event worked but not worked for select all.

Upvotes: 0

Views: 2789

Answers (1)

Dhiarj Sharma
Dhiarj Sharma

Reputation: 346

try it dear

$('.multiselect').multiselect({
            enableFiltering: true,
            enableCaseInsensitiveFiltering: true,
            includeSelectAllOption: true,
            includeSelectAllDivider: true,
            maxHeight: 400,
            onSelectAll: function () {
                console.log("select-all-nonreq");
            },
            onDeselectAll: function () {
                console.log("deselect-all-nonreq");
            }
        });

Upvotes: 2

Related Questions