Typically, the parent element remains hidden by default. However, upon clicking a specific element, its child might gain a class called "selected". How can I check for this class and then display the entire list if it is present?
<ul style="display: none;">
<li class="selected">a</li>
<li>b</li>
<li>c</li>
</ul>