jQuery plugin that converts <select>
input with attribute multiple into group of checkboxes with ability to add new values.
Requires jQuery UI styles (jQuery UI JS is not required).
Here is simple example:
<select multiple="on" size="5" name="color">
<option value="white">White</option>
<option value="black" selected="selected">Black</option>
<option value="red">Red</option>
</select>
$('select[name="color"]').multiselect();
or
var opts = { ... };
$('select[name="color"]').multiselect(opts);
layout
- Widget layout templateitem
- List item layout templateaddText
- Text for New value button/linkaddButton
- Layout template for the add button so you can also disable then by using the option var opts = { addButton : "" }cancelText
- Text for Cancel icon in text fieldinputTitle
- Text for input tooltipsize
- How many items show in widget without scroll (used if select has no size attribute)itemHoverClass
- Hover class for list itemstoggleAddButton
- Hide New value button when text field is visibleparse
- Function. Parse new list value and return values array. By default - split value by space(s)