run foreach loop in jquery code example
Example 1: jq each loop
$( "div" ).each(function( index ) {
//console.log( index )
modal_desc = $(this).length;
if(modal_desc > 20){
//code
}
});
Example 2: $.each( function(key value){$get()}
$.each( function(key value){$get()}