GrassHopperPebbles.com Demos

JQuery Plugins

imMultiLineList 0.5 - Remove Selected Items

The following example demonstrates how to remove selected items from the imMultiLineList. Use the removeSelectedItems method to remove the items.

$(document).ready( function() {
	var addressList = $("#listCntnr").imMultiLineList({
		option_map: {"optionValue": "id", "optionText": "address"},
		item_class: "multiListItem",
		item_hover_class: "multiListItemHover",
		item_select_class: 'multiListItemSelect'
	});
	addressList.addItems('assets/js/jquery/immultilinelist/address.php');
	$('#theButton').click(function() {
		addressList.removeSelectedItems();
	});

});	

View the source for this page to see how to setup the plugin. For documentation about the imMultiLineList plugin, view the blog post.



Tags

, , ,