1//looping through list elements in jquery
2$('#myUlID li').each(function() {
3 console.log($(this));
4})
1var listItems = $("#productList li");
2listItems.each(function(idx, li) {
3 var product = $(li);
4
5 // and the rest of your code
6});
7