Is it possible to start or stop this interval?
<script type="text/javascript">
$(document).ready(function(){
setInterval(function(){
$('#content').load('file.php')
}, 1000);
});
</script>
If I have some button that is inside file.php and it is clicked. Can I stop interval function from above inside this file?