I have this "for" loop that calls a function for ids named b1,b2,b3
for (var i = 1; i <= 3; i++) {
        editorfunction("b" + i);
        }
But the effect of this code need to be run with intervals of time. That means after editorfunction affects b1, there should be 1 second time space and then the action should be applied for b2, like that.
I tried this
for (var i = 1; i <= 3; i++) {
        //editorfunction("b" + i);
        setInterval(function () {editorfunction("b" + i);}, 1000; }
        }
But it does not work. How can I make it work?
