Answers for "check class exist in element by parent id in jquery"

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

Code answers related to "check class exist in element by parent id in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language