Auto Refresh Wordpress Post Div

admin

Administrator
Staff member
I would like to autorefresh a certain div with the ID of blue everytime I update a post with that ID.
I know the Jquery code looks something like this:

Code:
var auto_refresh = setInterval(
function ()
{
$('#blue').load('load.php').fadeIn("slow");
}, 10000);

Instead of loading "load.php" I would just like to reload the updated contents in the div which is done externally through the wordpress admin panel. Any help would be greatly appreciated. Thanks everyone!