Überprüfen Sie die Klasse, die in Element durch übergeordnete ID in jQuery existiert
$(this).parent().find('.accordion-body').length == 1;
or you can use hasClass()
Ankur
$(this).parent().find('.accordion-body').length == 1;
or you can use hasClass()