I'm trying to make a selector using form labels.
$("label:not[for='other']")
$("label[for='other']")
<label for="other">
<label for="somethingElse">
If someone selects the label for 'other', do something. If they pick a label for anything that isn't 'other' do something else.
You can do $("label[for!='other']") to select the labels that do not have the for attribute set to 'other'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With