davidstutz / bootstrap-multiselect

JQuery multiselect plugin based on Twitter Bootstrap.
https://davidstutz.github.io/bootstrap-multiselect/
Other
3.67k stars 1.98k forks source link

Select None as "Select All" #1270

Open stokito opened 1 year ago

stokito commented 1 year ago

I have a filter by category and when a user selected none of them then I need it to behave as Select All (e.g. the filter not applied). So I can't use the Select All option but I made instead a manual "Select All" option with just an empty value. It works but now I need to deselect other options when clicking on it. I can't do this inside of the onChange listener because there is no $this.