problem description
I want to dynamically add a style to the parent class, but whether I want to add this style depends on whether it contains a subclass. I"m not sure if I want to style the parent class, because all the parent classes have the same class name tag, and only the subclasses have a distinction
related codes
<tr>
<td></td>
</tr>
<tr>
<td class="child"></td>
</tr>
what result do you expect? What is the error message actually seen?
if there is a subclass child, let the tr be hidden, and if there is no tr, then do not do the processing, how to achieve?