How do I add a time interval to this code? I want the code to automatically fetch data during a specific time interval.
function fetch(){
$.ajax({
type: 'POST',
url: 'resultsget.php',
dataType: 'json',
success: function(response){
$('#content').html(response).iCheck({checkboxClass: 'icheckbox_flat-green',radioClass: 'iradio_flat-green'});
}
});
}