Toggleling button text in jquery this questionを見た後、自分の状況で再作成しようとしましたが、うまくいかないようです。
これが私がやったことのフィドルです:http://jsfiddle.net/V4u5X/
$('.SeeMore2').click(function(){
var $this = $(this);
$this.toggleClass('SeeMore');
if($this.hasClass('.SeeMore2')){
$this.text('See More');
} else {
$this.text('See Less');
}
});
if ステートメントは 1 回しか実行されないようです。私は何が欠けていますか?