Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォームラベルを使用してセレクターを作成しようとしています。
$("label:not[for='other']") $("label[for='other']") <label for="other"> <label for="somethingElse">
誰かが「その他」のラベルを選択した場合は、何かをしてください。「その他」ではないもののラベルを選択した場合は、他のことを行います。
'other'に属性が設定され$("label[for!='other']")ていないラベルを選択するために行うことができます。for
$("label[for!='other']")
for
使用する:
$("label:not([for='other'])")
また: