1 2 3 4 5 6 7 8 9 10
function send(param){ // code here } function time(){ alert ('start'); send(); intervalID = setInterval('send(param)', 1000*($('#cycle').val())); }