I am trying to load chosen.jquery.js file in my html/css file to achieve searchable dropdown but it doesnt seem to work. I downloaded the chosen.js plugin from http://harvesthq.github.io/chosen/. After downloading the plugin I copied the chosen files(js and css) to the /includes folder for my tool.
This is what I have tried till now:
<script src="../includes/chosen.jquery.js"></script>
<script src="../includes/chosen.jquery.min.js"></script>
<script src="../includes/chosen.proto.js"></script>
<link rel="stylesheet" href="../includes/chosen.css" />
<link rel="stylesheet" href="../includes/chosen.min.css" />
<div class="searchform">
<form class="pure-form" action="searchresults.php" method="post">
<fieldset>
<div class="searchfilters">
<label>Search Filters: </label>
<div class="search_boxes">
<select class="chosen-select" style="width:350px;" onchange="this.form.submit()">
<!--<option selected="selected">Search Project/Initiative...</option>-->
<?php
include "../includes/search_dropdown.php";
foreach($proj_ini_Array as $qa){
echo "<option value = \"$qa\">$qa</option>";
}
?>
In the select box I have "chosen-select". At multiple places the class has been declared as only "chosen" or "chzn-select". Which one is the appropriate one? Also, I am not sure what are the .min files for?
What am I missing over here?
Thanks in advance.