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