title: How to get selected values in SumoSelect dropdown?
body: <p>I am using the <a href="https://hemantnegi.github.io/jquery.sumoselect/" rel="nofollow noreferrer">SumoSelect</a> dropdown for multiselect options. But i cannot get the selected values array.
  Below the sample code :</p>
  
  <p>
      
      </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {         
      window.testSelAll = $('.testSelAll').SumoSelect({okCancelInMulti:true, selectAll:true });           
  
          $('.btnOk').on('click', function(){
              var obj = [];
              $('option:selected').each(function () {
                  obj.push($(this).index());  
                  alert("Selected Values=="+$(this).val());   
              });
  
              for (var i = 0; i &lt; obj.length; i++) {                      
                  $('.testSelAll')[0].sumo.unSelectItem(obj[i]);
              }
          });                 
      });
  
  &lt;/script&gt;
  
  &lt;select multiple="multiple" placeholder="Share Your Friends" onchange="console.log($(this).children(':selected').length)" class="testSelAll"&gt;
                  &lt;option value="1"&gt;Volvo&lt;/option&gt;
                 &lt;option value="2"&gt;Saab&lt;/option&gt;
                 &lt;option  value="3"&gt;Mercedes&lt;/option&gt;
                 &lt;option value="audi"&gt;Audi&lt;/option&gt;
                 &lt;option value="bmw"&gt;BMW&lt;/option&gt;
                 &lt;option value="porsche"&gt;Porche&lt;/option&gt;
                 &lt;option value="ferrari"&gt;Ferrari&lt;/option&gt;
                 &lt;option value="mitsubishi"&gt;Mitsubishi&lt;/option&gt;
         &lt;/select&gt;
  </code></pre>