About the crossSelect plugin
This plugin can replace any multiple select element with a "switch item to the other column" interface more intuitive to use, and more similar to that seen in many desktop applications.
To apply the plug-in to a <select> tag/some <select> tags add the line, eg
$('select[multiple="multiple"]').crossSelect();
The plugin takes 5 optional parameters in JSON form:
- rows (integer, default 8) - the height in rows of new select box
- font (integer, default 12) - font-size in pixels
- listWidth - (integer, default 150) - minimum width of the select box
- vertical (string, default 'scroll') -
'scroll' adds a scroll bar if the number of options is greater than the rows parameter
'expand' ignores the rows parameter and expands to show all rows
- horizontal (string, default 'hide') -
'scroll' adds a scroll bar if the width of any items is wider than listWidth
'expand' expands the width to the width of the longest item
'hide' clips the horizontal display if items are longer than the listWidth
- dblclick (boolean, default true) -
true enables quick selection of items with a double click
false disables double clicks
eg $('select').crossSelect({horizontal:'expand', font: '17', rows: '20'});
If you have any comments please leave a comment on my blog