I have a PHP file called data.php and I want to use jQuery to call the file and return its contents to
<div id="datacontainer"></div>
every 60 seconds. I have found lots of examples on here where the event is triggered onclick but I am struggling to find a solution for a timed event.
What is the best practice way to insert the output of a file named path/to/file/data.php into a div using jQuery/Ajax?
setInterval()