I have multiple DIVs of a specific class, and I want to select the one that contains an element with a specific ID. Example:
<div class="outerClass">
<h3 id="firstId">My heading #1</h3>
<p> My text 1</p>
</div>
<div class="outerClass">
<h3 id="secondId">My heading #2</h3>
<p> My text 2</p>
</div>
<div class="outerClass">
<h3 id="thirdId">My heading #3</h3>
<p> My text 3</p>
</div>
How can I select the DIV that contains the H3 with ID "secondId"?
Please note that I need to select the outer DIV that contains the H3 element, not the H3 element itself.