HTML Code:
<div>
<div>
<input id="chkA" type="checkbox" name="chkA">
</div>
<div>A</div>
<div id="A"></div>
</div>
Context is:
<div id="A"></div>
Problem:
I want to navigate to the first sibling of <div id="A"></div> and check if it has a child of type input/checkbox.
1 Answer