Given the following form, how do I select all labels EXCEPT those immediately preceding a checkbox or radio input.
<form>
<label>Select This Label</label><input type="text" />
<label>Select This Label</label><input type="email" />
<label>Select This Label Main checkbox group</label><br>
<label>NOT THIS LABEL!</label><input type="checkbox" />
<label>NOT THIS LABEL!</label><input type="radio" />
<label>Select this arbitrary label just hanging out here</label>
</form>
Goal: I'm trying to add a class to all labels except label 4 and 5.
EDIT: The selectors I've tried use the + and :not() operators in different places. So
$( form label +:not(input[type=radio],input[type=checkbox]) ~ label)
or
$( form label:not(+input[type=radio],+input[type=checkbox]) ~ label)
and such.
Edit 2* I have a need to do this COMPLETELY in the selector.