for each in query code example
Example 1: jquery loop over elements
$( "li" ).each(function( index ) {
console.log( index + ": " + $( this ).text() );
});
Example 2: jqery each from string html
$(response).find('div.product-review')
$( "li" ).each(function( index ) {
console.log( index + ": " + $( this ).text() );
});
$(response).find('div.product-review')