title: multiselect filter using javascript
body: <p>I have option tag and it works fine with single filter and I want to make it multi select....following is my code:- </p>
  
  <pre><code>$('#version_no').change(function () {
     var version_no = $('#version_no').val();
     if (version_no != null) {
        showAll(version_no);
     } else {
        showAll();
     }
     });
  </code></pre>
  
  <p><code>showAll()</code> is a function that returns data after filtering. if no filter is selected then everything is shown.</p>
  
  <p><strong>following is the view code:-</strong></p>
  
  <pre><code>    &lt;select multiple="multiple" style="margin-top:15px;" name="version_no" id="version_no"&gt;
     &lt;option value=""&gt;Select Version No&lt;/option&gt;
      &lt;?php if (count($get_version_no)): ?&gt;
             &lt;?php foreach ($get_version_no as $version): ?&gt;
                   &lt;option value=&lt;?php echo $version-&gt;version_no; ?&gt;&gt;&lt;?php echo $version-&gt;version_no; ?&gt;&lt;/option&gt;
            &lt;?php endforeach; ?&gt;
            &lt;?php else: ?&gt;
    &lt;?php endif; ?&gt;
  </code></pre>
  
  <p></p>
  
  <p><code>$get_version_no</code> is generating the dropdown value like 1,1.1,1.2 etc.....</p>
  
  <p>SO I want to make it multi select any help will be appreciated. I'm using codeigniter 3.</p>