title: Bootstrap multiselect - to trigger event 'onSelectAll' or 'onDeselectAll' when De-select / Uncheck all options in a single click (best way needed)
body: <p>I want to put a listener on 'onDeselectAll' event, but 'onDeselectAll' - does not exist in the latest version of the <a href="https://github.com/davidstutz/bootstrap-multiselect" rel="nofollow noreferrer">Bootstrap multiselect</a> plugin.</p>
  
  <p>I want something like that </p>
  
  <pre><code>        $('.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");
              }
          });
  </code></pre>
  
  <p>What is the best way to do that?</p>
  
  <p>What is the best fork solving this issue? I found <a href="http://gitlab.mmcs.sfedu.ru:82/dummer/itlabfork-bootstrap-multiselect/commit/2e93a99a5477b02d693105c3f34d480bee43fe08" rel="nofollow noreferrer">this fork</a> not quite the same as 'onDeselectAll' but close. Is there anything better?</p>
  
  <p>I red somewhere that this option existed in older versions, why did they remove it?</p>
  
  <p>I've found the developers made an <a href="https://github.com/davidstutz/bootstrap-multiselect/issues/752" rel="nofollow noreferrer">issue</a> about it. Does it mean they are planning to fix it? When?</p>
  
  <p>I was checking if Select2 can do 'select all' is it possible?</p>
  
  <p>What should I do? Wait, to go older version or use another fork use another plugin? </p>
  
  <p>This is a desired result.</p>
  
  <p><a href="https://i.stack.imgur.com/vd4b6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vd4b6.png" alt="enter image description here"></a></p>