Skip to content

24 ways to impress your friends

Vote up?

Andrew

I try replacing function init() for a page with multiple items with:-

function init(){

var max = 50;

for (i = 1; i lt= max; i++){

makeEditable(‘item_’+i);}

}

but when i run the script i get the error “expected ’;’ on line 7” which equates to the “for” line.

Does anyone have any ideas or suggestions as to whythis doesnt work?

Thanks, Andrew