Answers for "hquery if h3 has class"

CSS
1

check class exist in element by parent id in jquery

$(this).parent().find('.accordion-body').length == 1; 
or you can use hasClass()
Posted by: Guest on July-09-2020
6

detect if an element has a class jQurey

$("#EL_ID").hasClass("CLASS_NAME");
Posted by: Guest on May-14-2020

Browse Popular Code Answers by Language