Qix
0
Q:

jquery each get index

$( "li" ).each(function( index ) {
  console.log( index + ": " + $( this ).text() );
});
2
$('.testimonial').each(function(){
    //if statement here 
    // use $(this) to reference the current div in the loop
    //you can try something like...
    if(condition){
    }
 });
8
$( "li" ).each(function( index ) {
  console.log( index + ": " + $( this ).text() );
});
12

New to Communities?

Join the community