multiselect2side plugin: documentation and demo page

Demo Search - Full demo select multiple double side with search option true (1000 elements)

Select multiple="multiple" modified by multiselect2side


Click here to test the select above
Result of a php print_r() function:

---

Click here to hide/show original select

This is the javascript code to launch multiselect2side to #searchable select:

$().ready(function() {
	$('#searchable').multiselect2side({'search': 'Search: '});
});
				

Demo 1 - Full demo select multiple double side

Select multiple="multiple" modified by multiselect2side


Click here to test the select above
Result of a php print_r() function:

---

Click here to hide/show original select

This is the javascript code to launch multiselect2side to #first select:

$().ready(function() {
	$('#first').multiselect2side({
		optGroupSearch: "Group: ",
		search: "<img src='img/search.gif' />"
	});
});
				

Demo 2 - select multiple double side - moveOptions: false, autoSort: true

Move buttons are disabled but is enable autoSort. Header label not present.


Click here to test the select above
Result of a php print_r() function:

---

Click here to hide/show original select

This is the javascript code to launch multiselect2side to #second select:

$().ready(function() {
	$('#second').multiselect2side({
		selectedPosition: 'right',
		moveOptions: false,
		labelsx: '',
		labeldx: '',
		autoSort: true,
		autoSortAvailable: true
		});
});
				

Demo 3 - select multiple double side - selectedPosition: 'left'

Elements selected are in the left, label of move buttoms are modified.


Click here to test the select above
Result of a php print_r() function:

---

Click here to hide/show original select

This is the javascript code to launch multiselect2side to #third select:

$().ready(function() {
	$('#third').multiselect2side({
		selectedPosition: 'left',
		moveOptions: true,
		labelTop: '+ +',
		labelBottom: '- -',
		labelUp: '+',
		labelDown: '-',
		labelsx: '* Selected *',
		labeldx: '* Available *',
		search: "Find: "
		});
	$('#third')
		.multiselect2side('addOption', {name: 'test selected', value: 'test1', selected: true})
		.multiselect2side('addOption', {name: 'test not selected', value: 'test2', selected: false});
});
				

Demo 4 - Select multiple double side with limited number of selectionable options

Select multiple="multiple" with parameter maxSelected, selectionable options limited to 4


This is the javascript code to launch multiselect2side to #fourth select:

$().ready(function() {
	$('#fourth').multiselect2side({maxSelected: 4});

	$('#fourth')
		.multiselect2side('addOption', {name: 'test selected', value: 'test1', selected: true})
		.multiselect2side('addOption', {name: 'test not selected', value: 'test2', selected: false});
});
				

Documentation

To use this jquery plugin:

For comments see the blog page.

Options:

Methods:

Download

You can download the entire archive:

Or single file:

Release

License

Dual licensed under the MIT and GPL licenses.