index start to 1 jaquery each code example
Example: jq each loop
$( "div" ).each(function( index ) {
//console.log( index )
modal_desc = $(this).length;
if(modal_desc > 20){
//code
}
});
$( "div" ).each(function( index ) {
//console.log( index )
modal_desc = $(this).length;
if(modal_desc > 20){
//code
}
});