jquery
1$(function() { 2 3 $('.top-wrapper-heading').on({ 4 'mouseenter': function(){ 5 $(this).text('changed'); 6 }, 7 'mouseleave': function(){ 8 $(this).text(ここをなんて書けばいいのだろうか。); 9 10 } 11 }) 12});
htmlに書かれたことをまた、mouseleaveのtextの中に書かないといけないんですか??
もっと簡単な方法がありましたら教えて欲しいです!
回答3件
あなたの回答
tips
プレビュー