I have like...
<div id="div"></div>
<script src="jquery.js"></script>
<script src="updater.js"></script>
The updater I want to get data from my .php file, so probably something like...
setInterval(function() {
$.ajax({
type: "GET",
url: "test.php",
success: function(html) {
// html is a string of all output of the server script.
$("#div").html(html);
}
});
}, 5000);
Then, obviously enough the test.php's page will result.
But, I want to STOP the setInterval(); WHEN someone clicks on a comment button (textarea). I'm aware, there's some on here; but they're not working?