KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there anyone know how to kill interval after using setInterval() in the following use case? Thanks in advance! $(document).ready(function(){ setInterval(function(){ $.ajax({ url: "test.php", success: function(result){ $("#results").append(result); } }); }, 1000); }); test.php $CT = date('Y-m-d H:i:s', time()); echo $CT;
Tags (comma-separated)
Save Edits
Cancel