Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to iterate over list in jquery

var listItems = $("#productList li");
listItems.each(function(idx, li) {
    var product = $(li);

    // and the rest of your code
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #list #jquery
ADD COMMENT
Topic
Name
5+7 =