A plugin for jQuery.Chosen, to improve efficiency when duplicate selection.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config.yml
chosen-gopher.css
chosen-gopher.js
chosen-sprite.png
chosen-sprite@2x.png
chosen.css
chosen.jquery.js
chosen.jquery.min.js
index.html
license.md
readme.md

readme.md

Gopher

Hello there, Gopher is a plugin for jQuery.Chosen, to improve efficiency when duplicate selection.


Demo

Click here

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