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 somethin开发者_StackOverflowg. 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'.
Use:
$("label:not([for='other'])")
or:
$("label[for!='other']")
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论