Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap Multiselect not working
    text
    copied!<p>I'm trying to use multiselect Bootstrap, I used the following code which is also available in their website too at (<a href="http://davidstutz.github.io/bootstrap-multiselect/">http://davidstutz.github.io/bootstrap-multiselect/</a>), it shows the button for multi-select and as I already put the selected option for "cheese and pepperoni", it has already selected them too, but whenever I click on it, it does not open the list to choose! </p> <pre><code>&lt;!-- Include the plugin's CSS and JS: --&gt; &lt;script src="http://code.jquery.com/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url('bootstrap/js/bootstrap-multiselect.js'); ?&gt;"&gt;&lt;/script&gt; &lt;link href="&lt;?php echo base_url('bootstrap/css/bootstrap-multiselect.css'); ?&gt;" rel="stylesheet" type="text/css"&gt; &lt;link href="&lt;?php echo base_url('bootstrap/css/bootstrap.min.css'); ?&gt;" rel="stylesheet" type="text/css"&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url('bootstrap/js/bootstrap.min.js'); ?&gt;"&gt;&lt;/script&gt; &lt;!-- Build your select: --&gt; &lt;select class="multiselect" multiple="multiple" name="my-select[]" id="my-select"&gt; &lt;option value="cheese" selected&gt;Cheese&lt;/option&gt; &lt;option value="tomatoes"&gt;Tomatoes&lt;/option&gt; &lt;option value="mozarella"&gt;Mozzarella&lt;/option&gt; &lt;option value="mushrooms"&gt;Mushrooms&lt;/option&gt; &lt;option value="pepperoni" selected&gt;Pepperoni&lt;/option&gt; &lt;option value="onions"&gt;Onions&lt;/option&gt; &lt;/select&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('.multiselect').multiselect(); }); &lt;/script&gt; </code></pre> <p>Am I missing something? </p> <p>Also if you think my question is not clear please let me know which part you need more clarification.</p> <p>Many thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload