jquery-touch-multiselect

jQuery plugin to have a touch-fitted multi select input field.

View the Project on GitHub fklingler/jquery-touch-multiselect

This jQuery plugin is able to transform a classic <select multiple="multiple"> input field of a form into a nice foldable list with easily selected elements, even for a touch device like a smartphone.

Demo

Usage

You can simply use this plugin by creating a standard <select multiple="multiple"> list :

<select multiple="multiple">
  <option value="1" selected="selected">Option 1</option>
  <option value="2">Option 2</option>
  <option value="3" selected="selected">Java</option>
  <option value="4">Option 4</option>
</select>

Then in a javascript script, you can simply use this function :

$('select').touchMultiSelect();

Parameters

Some parameters can be passed to the function to customize the behavior of the plugin :

Example

$('select').touchMultiSelect({
  noneButtonPresent: false,
  permitNoSelectedButton: true
});

Information

This plugin has been made as a part of my work at Novelys.

License

MIT License. Copyright 2012 Novelys.