Skip to content

Instantly share code, notes, and snippets.

@lou
Created April 3, 2012 09:46
Show Gist options
  • Save lou/2290734 to your computer and use it in GitHub Desktop.
Save lou/2290734 to your computer and use it in GitHub Desktop.
searchable multiselect
<body>
<select name="countries[]" multiple="multiple" id="searchable-select">
<option value="fr" selected="selected">France</option>
<option value="ca">Canada</option>
<option value="ar">Argentina</option>
<option value="pt">Portugal</option>
<option value="us">United States</option>
<option value="gb">United Kingdom</option>
<option value="au">Australia</option>
<option value="ao">Angola</option>
<option value="aq">Antarctica</option>
<option value="bq">Burkina Faso</option>
<option value="cn">China</option>
</select>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.multi-select.js" type="text/javascript"></script>
<script src="js/jquery.quicksearch.js" type="text/javascript"></script>
<script src="js/your_js_file.js" type="text/javascript"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment