Can clearInterval() be called inside setInterval()?

bigloop=setInterval(function () { var checked = $(‘#status_table tr [id^=”monitor_”]:checked’); if (checked.index()===-1 ||checked.length===0 || ){ bigloop=clearInterval(bigloop); $(‘#monitor’).button(‘enable’); }else{ (function loop(i) { //monitor element at index i monitoring($(checked[i]).parents(‘tr’)); //delay of 3 seconds setTimeout(function () { //when incremented i is less than the number of rows, call loop for next index if (++i < checked.length) loop(i); }, 3000); … Read more