初心者の質問:
単一のp要素を持つWebページがあります。イベント内のp.html()にアクセスできると思いましたが、アクセスできません。イベント内の要素にjQuery要素としてアクセスする方法はありますか?
<script src="Scripts/jquery-1.8.2.js"></script>
$(function () {
$("p").first().bind('click',null, function (event) {
this.innerHTML = "this works";
this.html('this does not');
});
}
);