Hi I want to do something basic but i cant seem to figure it out. 
I want to be able to select multiple options from a
box.
For example sake, the page is called index.php
I have bootstrap installed in folders js, css and less in / of the web server.
all of the bootstrap css and java scripts are correctly loaded and is working just fine when calling the classes with in html tags.
Now i want to follow this tutorial
http://silviomoreto.github.io/bootstrap-select/
I downloaded the CSS and Java js files an placed them into the folders mentioned earlier on js and css which is in the root.
I have also made sure i mentioned
above the
tag
and
in-between the
tags.
The following then semi works.
however even though it gets formatted with the usual bootstrap "css theme" when i click it, it wont give a dropdown.
I often struggle to get the custom stuff to work cus i dont know how to implement certain things
I.E The tutorial is saying, Enable Bootstrap-Select via JavaScript:
Options can be passed via data attributes or JavaScript.
But where do i put this piece of code ? in-between
??? Is all of this stuff not included in the bootstrap-select.js file that i'm linking to above the </body> tag???
I want to be able to select multiple options from a
HTML:
<select> <option> </option> </select>
For example sake, the page is called index.php
I have bootstrap installed in folders js, css and less in / of the web server.
all of the bootstrap css and java scripts are correctly loaded and is working just fine when calling the classes with in html tags.
Now i want to follow this tutorial
http://silviomoreto.github.io/bootstrap-select/
I downloaded the CSS and Java js files an placed them into the folders mentioned earlier on js and css which is in the root.
I have also made sure i mentioned
PHP:
<script src="js/bootstrap-select.js"></script>
PHP:
</body>
and
PHP:
<link href="css/bootstrap-select.css" rel="stylesheet">
<link href="css/bootstrap-select.min.css" rel="stylesheet">
PHP:
<head> ... </head>
The following then semi works.
PHP:
<select class="selectpicker" multiple>
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
however even though it gets formatted with the usual bootstrap "css theme" when i click it, it wont give a dropdown.
I often struggle to get the custom stuff to work cus i dont know how to implement certain things
I.E The tutorial is saying, Enable Bootstrap-Select via JavaScript:
PHP:
$('.selectpicker').selectpicker();
Options can be passed via data attributes or JavaScript.
PHP:
$('.selectpicker').selectpicker({
style: 'btn-info',
size: 4
});
But where do i put this piece of code ? in-between
PHP:
<script> </script>