私はstackoverflowを検索しましたが、答えが見つかりませんでした。
以下のhtmlをご確認ください
<button type="button" class="nacnchor" value="1">hello</button>
<button type="button" class="nacnchor" value="2">hello</button>
<button type="button" class="nacnchor" value="3">hello</button>
クラスに基づいてボタンのテキストを変更できます
$('button.nacnchor').text("REWRITE");
しかし、属性値に基づいて値を変更したいのですが、$('button.nacnchor,attr(value=1)')
:pのようなものはありますか?