Well, first you have to include the jQuery
library, get it from here, then you'll have to add the chosen.js
file, downloaded from here, and finally you have to turn your select
HTML element into "chosen" element, your HTML code should look like this example:
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/chosen.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#element").chosen();
});
</script>
This is the default usage of chosen.js
, you can however specify many other option, but it is better to read the documentation.
Download the latest version of chosen.js
from here.