jQuery - foreach

12/19/2012 12:23:08 AM

Loop through all items in a list using jQuery using a foreach and multiple starting points

//foreach using an array
$.each(data.List, function (index1, value1)
{                        
	//do something
});

//foreach a class identifier
$('.className').each(function (index1, value1)
{
	//do something
});