How do I stop an effect in jQuery

后端 未结 4 1630
Happy的楠姐
Happy的楠姐 2020-12-17 16:39

I have a page that uses

$(id).show(\"highlight\", {}, 2000);

to highlight an element when I start a ajax request, that might fail so that

4条回答
  •  猫巷女王i
    2020-12-17 17:01

    In my case, using below code does not work and keep your opacity value remain:

    $('#identifier').stop(true, true).effect("pulsate", { times: 1 }, 1);
    

    For me just remove opacity are working:

    $('#identifier').stop(true, true).css('opacity','');
    

提交回复
热议问题