Answers for "get multiple elements same class jquery"

2

how to get all elements with same class in jquery

$('.testimonial').each(function(i, obj) {
    //test
});
Posted by: Guest on March-08-2021
0

jquery select multiple elements with same class

function checkads() {
    $('.someclass').each(function(){           
       if($(this).height() < 50) {
             $(this).parent().parent().prepend('<div id="ad-notice">Please support our website</div>');
       }
   });
}

$(document).ready(checkads);
Posted by: Guest on April-20-2022

Code answers related to "get multiple elements same class jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language