I have a jquery ex like this..
jQuery(document).ready(function() {
var refreshId = setInterval(function() {
jQuery("#results").load('random.php?randval='+ Math.random()+'&hours='+jQuery('#hours').val()+'&mins='+jQuery('#mins').val()+'&seconds='+jQuery('#seconds').val());
jQuery("#time_spent").val(jQuery("#results").html());
}, 1000);
});
and a submit button like this
<input type="submit" name="submit" value="Stop" id="submit" />
Now if the submit button is clicked the ajax jquery load should be stopped atonce since the time interval is 1 second.
How to do . please help thanks Haan