var arr=[1,2,3]; $.each( arr, function( index, value ){ console.log(value); }); //For getting Elements $( "li" ).each(function() { console.log( $(this).text()); });