Skip to content

A skin for simple multi select when dealing with short lists. It uses standard HTML select boxes and jquery to add a more intuitive interaction.

Notifications You must be signed in to change notification settings

stevebutterworth/jquery.selectify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.selectify

A javascript widget for simple multi select when dealing with short lists. It uses standard HTML select boxes and jquery to add a more intuitive and easily cusomizable interface.

Rational

I love Chosen for intuitive multi select of long lists such as countries but it doesn't seem like the right choice for multi select from a short list. I still wanted a select box because I wanted the same behaviour as a select box but I wanted a more intuitive UI.

Details

This is a branch of jquery.tabselect with a couple of extra features and a bit of cleaning up so my HTML markup can be exactly as a standard select box and the js widget does the rest.

It works for multi select...

Multi select

...and for single select...

Single select

...and the styling is easily customizable via css

Code Example

To get started just download jquery.selectify.js and selectify.css and include them in your html page. Then simply add some shine to those select boxes with something like this...

HTML

  <select class="selectify" id="languages" multiple="multiple" name="languages">
    <option value="ruby">Ruby</option>
    <option value="javascript">Javascript</option>
    <option value="swift">Swift</option>
    <option value="java">Java</option>
    <option value="php">PHP</option>
  </select>

Javascript

  $(document).ready(function(){
    $(".selectify").selectify();
  })

Attribution

Thank you to Fredi Bach for the original work and thank you to Working Planet Ltd for sponsoring the development of the selectify widget.

About

A skin for simple multi select when dealing with short lists. It uses standard HTML select boxes and jquery to add a more intuitive interaction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published