jquery change background-image

前端 未结 6 647
夕颜
夕颜 2020-12-09 04:32

I\'m trying to swap two images with jQuery. Using the hover event I tried:

$(\"#wlt-DealView .buyButton_new\").mouseover(function(e){
    $(\'.buyButton_new\         


        
6条回答
  •  旧巷少年郎
    2020-12-09 05:24

    The syntax is as follows

    $(element).hover(function(){
      $(this).css(whatever);
    }, function(){
      $(this).css(whatever);
    });
    

提交回复
热议问题