refresh div with jquery

后端 未结 2 1829
囚心锁ツ
囚心锁ツ 2020-12-06 00:53

I\'d like to refresh a div. It should have new information from the server on it. All the other answers assume that you\'ve gotten the new data from your $.ajax request an

2条回答
  •  旧巷少年郎
    2020-12-06 01:31

    I tried the first solution and it works but the end user can easily identify that the div's are refreshing as it is fadeIn(), without fade in i tried .toggle().toggle() and it works perfect. you can try like this

    $("#panel").toggle().toggle();

    it works perfectly for me as i'm developing a messenger and need to minimize and maximize the chat box's and this does it best rather than the above code.

提交回复
热议问题