Is there a way to append a counter to short down a code. So, my code is
$$("checkbox0").setValue(cookie.checkbox0);
$$("checkbox1").setValue(cookie.checkbox1);
and so on... What I want to to is for loop
for(i = 0; i <= columns; i ++) {
$$("checkbox"+i).setValue(cookie.checkbox[i]);
}
but it doesn not work for the last checkbox object. Does someone knows the hack for this? Thanks :)