title: How to Select box value selected from db values in boostrap multiselect js?
body: <p>How to selected Db values selected in select dropdown list like PHP in Multiselect boostrap dropdown?</p>
  
  <p>For example Php coding,</p>
  
  <pre><code>$array = array("apple", "orange", "lemon");
  &lt;select&gt;
  &lt;option value=""&gt;&lt;/option&gt;
  &lt;?php
  foreach ($array as $data) {
      ?&gt;
      &lt;option value="&lt;?php echo $data ?&gt;" &lt;?php if ($data == "orange") echo "selected"; ?&gt;&gt;&lt;?php echo $data ?&gt;&lt;/option&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p></p>
  
  <p>In php db value select using Selected,How in Boostrap Multiselect js?</p>
  
  <pre><code>&lt;button type="button" class="multiselect dropdown-toggle btn btn-default" data-toggle="dropdown" title="None selected"&gt;
  None selected 
  &lt;b class="caret"&gt;
  &lt;/b&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;ul class="multiselect-container dropdown-menu"&gt;
  &lt;li class="multiselect-item multiselect-all"&gt;
    &lt;a href="javascript:void(0);" class="multiselect-all"&gt;
      &lt;label class="checkbox"&gt;
        &lt;input type="checkbox" name="multiselect" value="multiselect-all"&gt;
        Select all
      &lt;/label&gt;
    &lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="javascript:void(0);"&gt;
      &lt;label class="checkbox"&gt;
        &lt;input type="checkbox" name="multiselect" value="cheese"&gt;
        Cheese
      &lt;/label&gt;
    &lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>How to set value in above boostrap multiselect js? like selected option in php?for example:if db value coming cheese means selected value in Multiselect Dropdown?</p>