I have a div with id='tips'. It has a multiple childs. What I need to do Is I want to fetch a child of the div with id='tips' which has its style, top < 10px. Here’s a snippet of the code.
<div id="tips">
<div style="top: 5px; left: 150px;">
Required Div
<span class="arrow"></span>
</div>
<div style="top: 15px; left: 150px;">
Not-Required Div
<span class="arrow"></span>
</div>
<div style="top: 45px; left: 150px;">
Child3
<span class="arrow"></span>
</div>
</div>
Only one div child div with top<10px exists.
Use
filter():Example fiddle