$.each( obj, function( key, value ) { alert( key + ": " + value ); });
$( "li" ).each(function( index ) { console.log( index + ": " + $( this ).text() ); });