First, the jQuery library needs to be included. Then Twitter Bootstrap - both the Javascript library and the CSS stylesheet - needs to be included.javascript
The jQuery library can also be included using a CDN, for example the Google CDN:css
Note that the plugin will work both with version 2.x of the jQuery library as well as with version 1.10.x of the jQuery library. So for using the Google CDN you may have to adjust the version.java
Now simply use HTML to create your select
input which you want to turn into a multiselect. Remember to set the multiple
attribute as to get a real multiselect - but do not worry, the plugin can also be used as usual select without the multiple
attribute being present.jquery
In the end, simply call the plugin on your select
. You may also specify further options, see the Options tab for further information.ajax