I'm trying to check whether my self-calling jquery function did the job done but what happened is that the result keep multiplying on each self calling.
HTML
<span id="checkit"></span>
Javascript
$(function(){
callme();
});
function callme(){
$('#checkit').append("callme loaded<br />");
setInterval("callme()", 5000);
}
Normally, here's my result for the codes.
onLoad.
callme loaded
5 seconds later
callme loaded <from previous
callme loaded
another 5 seconds later
callme loaded <from previous
callme loaded <from previous
callme loaded
callme loaded
callme loaded
callme loaded
Sorry for the crappy explanation. I've been thinking really hard why this stuffs happened. If anyone could explain what I did wrong, or the solution for this. Please help - This problem kept bugging me for days.