jqeury each example Example: jquery each $( "li" ).each(function( index ) { console.log( index + ": " + $( this ).text() ); });