Tell me how to use ajax to add a script that will update the information every second on the site without reloading the page.
<div id="content"></div> <script> function show() { $.ajax({ url: "time.php", cache: false, success: function(html){ $("#content").html(html); } }); } $(document).ready(function(){ show(); setInterval('show()',1000); }); </script> I tried this script, but there are problems, because it is updated every second the block is flickering