I would like to reload the script if it suddenly doesn't work; no result come out.
I create a button <div id="totalnow">Reload</div>.
When i click Reload nothing happen, is there any option?
function totalnow() {
var url="./ajax/totalvote.php";
jQuery("#totalnow").load(url);
}
$(document).ready(function() {
totalnow();
setInterval("totalnow()", 7000);
});
setInterval(totalnow, 7000)to do this.