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.
span タグの title プロパティを設定できません... 次のコードを使用しています
$('.className').find("span").attr("title",'Some_text');
動いていない...
おそらく問題は、クラス内のスパン要素を検索していることです。これでうまくいきます。
$('span.className').attr('title','New Title');
ここでは、そのクラスを持つすべてのスパン要素にタイトルを適用します。
お役に立てば幸いです。
フィドル