Source
$(function reload(){
$.ajax({
.
.
.
window.setTimeout(reload, 3000);
});
});
This function reload ajax page on every 3 sec.
I want to make stop button(#stop).
$('#stop').click(function){
//STOP FUNCTION
});
Please let me know how to make it?
1 Answer