loop object in jquery code example
Example 1: jquery loop over elements
$( "li" ).each(function( index ) {
console.log( index + ": " + $( this ).text() );
});
Example 2: loop through object jquery
$.each(myObject, function(key,valueObj){
alert(key + "/" + valueObj );
});