setinterval function not repeating
Hi All,
I am using setinterval() which should reflect the values on every 3sec. But it is reflecting changed values only when i do refresh of html page.
HTML code:
<div id="#anuj" onload="call_periodically_UC1()">
function:
function call_periodically_UC1() {
setInterval(function () {
callme();
}, 3000);
}
$(document).ready(
$.callme = function () {
$.ajax({//create an ajax request to display.php
type: "POST",
url: "ReadDataBaseValue",
dataType: "html", //expect html to be returned
success: function (response) {
$("#anuj1").html(response);
alert("Hiii");
}
});
}
);