Making my ajax updated div fade in

后端 未结 5 1860
野性不改
野性不改 2020-12-08 04:51

I have this code that performs an ajax call and loads the results into two duplicate divs every time a dropdown is changed. I want the results to be faded into the div, to g

5条回答
  •  太阳男子
    2020-12-08 05:26

    You'll have to hide() it before you can use fadeIn().

    UPDATE: Here's how you'd do this by chaining:

    $("#charges-gsm-faq").hide().html(html).fadeIn();
    $("#charges-gsm-prices").hide().html(html).fadeIn();
    

提交回复
热议问题