Hi The following script is not working for me
$(document).ready(
function() {
setInterval(function() {
var placeHTML="<?php echo $domains_all; ?>";
$("#domains").html(placeHTML);
}, 2000);
});
I know that we can load the php from external php file using the following script
$('#myParagraph').load('myPage.php');
But, I dont want to load from external file. Because, in top of the page I am using php GET method
so, it is not better to load external php file. I want to add innerHTML with setinterval.
How should I want to modify the script?