SetInterval function is not working with PHP File

前端 未结 2 1052
鱼传尺愫
鱼传尺愫 2021-01-27 12:27

I have index.html like this






        
2条回答
  •  我在风中等你
    2021-01-27 12:58

    It´s working for me, but you only can see the content one time, because .load function is replacing the old content, change

    $('#mydiv').load('xyz.php').fadeIn("slow");  
    

    with this

    $('#mydiv').append($('
    ').load('xyz.php'));

提交回复
热议问题