私はコードの下に持って取得タグ
$('li').click(function(e){
e.preventDefault();
$(this).addClass("active1");
// $(this a).addClass("acolor"); // I am trying this
});;
アンカータグは、Liタグ内にあるとLiのクリック時に私は、テキストの色変更したい - .acolorクラスにCSSであり
ここで私は李を得ています。タグを取得したいと思います。
ご協力いただければ幸いです!ありがとう
Iは(http://stackoverflow.com/search?q=%5Bjquery%5D+find+element+inside+this)[ '[jqueryの] this'内部要素を見つける]を検索することによって、重複を発見、それは私にhttp://stackoverflow.com/questions/10604251/call-elements-inside-thisにさせてくれました。 –