using IE8
var valuedaniel = 66;
var myarray = new Array();
myarray[0] = "daniel";
alert(eval("value" + myarray[0] ) ); //66
but
eval("value" + myarray[0] ) = 77; //cannot assign to a function result
how to set ("value" + myarray[0] ) to 77 so that valuedaniel will = 77 ?
Thanks.
var valuedaniel = 66;
var myarray = new Array();
myarray[0] = "daniel";
alert(eval("value" + myarray[0] ) ); //66
but
eval("value" + myarray[0] ) = 77; //cannot assign to a function result
how to set ("value" + myarray[0] ) to 77 so that valuedaniel will = 77 ?
Thanks.