I have the following code. I want to make a check box that will activate this code when checked and deactivates the code when unchecked. can someone show me how?
<script type="text/javascript">
var auto_refresh = setInterval(
function ()
{
$('#load_tweets').load('record_count.php').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds
<body>
<div id="load_tweets"> </div>
</body>
</script>
1 Answer