<div class="alpha">
<div class="beta">
<label style="color:red; font-size: 12px;">Hello</label>
</div>
</div>
I want to exclude (= not include), the above label
.
This includes it (tested successfully):
document.querySelectorAll(.alpha .beta label");
Now how to exclude it? I want to select all my label class
but this one I want to exclude only has a label style
.