I have a div with id='tips'. It has several children. What I need to do I want to get a child div with id='tips'which has its own style, top <10px. Here is a snippet of 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>
There is only one div div div with a vertex <10px.
ro ko source
share