GrassHopperPebbles.com Demos

JQuery Plugins

imMultiLineList 0.5 - Add Items

The following example demonstrates how to add multiple items into the imMultiLineList plugin. Use the addItems method to load the data. The data format must be JSON. This plugin was created using an Object Oriented approach.

$(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');
});	

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

Tags

, , ,