I’d like to make 2 selections inside container (Container). The code looks as follows:
<div id="Container">
<div id="Div6" class="one">A</div>
<div id="Div7" class="two">B</div>
<div id="Div8" class="one">C</div>
<div id="Div9" class="two">D</div>
<div id="Div10" class="one">E</div>
</div>
First, I want to select all elements with class “one” and than inside that wrapped set of 3 elements (Div6, Div8 and Div10) to select only Div10?
Simple answer would be to select them independently, like so:
If for some reason you have to select the classes first, then filter out just the element with the right ID, do: