I need to execute a piece of JavaScript code say, each 2000 milliseconds.
setTimeout(\'moveItem()\',2000)
The above will execute a function
It should be:
function moveItem() { jQuery(".stripTransmitter ul li a").trigger('click'); } setInterval(moveItem,2000);
setInterval(f, t) calls the the argument function, f, once every t milliseconds.
setInterval(f, t)
f
t