Gopher
Hello there, Gopher is a plugin for jQuery.Chosen, to improve efficiency when duplicate selection.
Demo
Demo page
How To Use the Gopher
-
Include jQuery,Chosen and Gopher to your HTML.
-
Preper your source-select element : there are source option a lot options
<select id="source_select"> <option>there are source option </option> </select>
-
Trigger Chosen on your source select element:
$("#source_select").chosen();
-
Trigger Gopher on other child-select elements which want to be like source select :
I want to be source I want to be source I want to be source$('.child-select').gopher({ main_select: document.getElementById('source_select'), });
-
All child-select already inheritance from source-select:
I same as source a lot options I same as source a lot options I same as source a lot options
Support
- jQuery 1.7+
- Chosen 1.85+
Reference
- Chosen harvesthq/chosen