Answers for "how to get particular element which hsa has 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 hasClass() - check for more than one class

element.is('.class1, .class2')
// works, but it's 35% slower than

element.hasClass('class1') || element.hasClass('class2')

//https://stackoverflow.com/questions/2214952/jquery-hasclass-check-for-more-than-one-class
Posted by: Guest on November-26-2020

Code answers related to "how to get particular element which hsa has same class jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language