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.
タイトルで要素を選択し、そのタイトルを変更する方法を知りたいです。
たとえば、要素に「Hello」というタイトルがあるとします。その特定の「Hello」というタイトルをターゲットにして、ページが読み込まれた後に「さようなら」に変更したいと思います。
Jqueryでこれを書く方法について誰かが私を助けることができますか?
次のようなものかもしれません:
$(function(){ $('[title="Hello"]').attr('title','Good Bye'); });
セレクターを使用します。
$('*[title="Hello"]');