Am trying to refresh data stored in a div every 10 seconds using jQuery.
My HTML code is:
Untitled Docume
Here's a way that will solve what you want to achieve, using the $.get method in jQuery:
$.get
$(document).ready(function () { setInterval(function() { $.get("getLatestData.php", function (result) { $('#latestData').html(result); }); }, 10000); });