イベントクリックイベント設定$('a').click(function(){ $(this).css('color', 'red'); }); 実行$('a').click(); マウスオーバーmouseover() / mouseout()$('li') .mouseover( function(){ $(this).css('color', 'red'); }) .mouseout( function(){ $(this).css('color', 'blue'); } ); hover()$('li') .hover( function(){ $(this).css('color', 'red'); }, function(){ $(this).css('color', 'blue'); } ); |
|