tomwoj
03-14-2005, 06:03 PM
I am trying to return a value from a 2 dimension array. Below is an example of what I'm trying to do. Does anyone know why it won't work?
array1[0][0] = "Some Text";
array1[0][1] = "document.forms[0].PersonName";
for (i=0; i<array1.length; i++){
array[i][1].style.background = "#FCC";
}
This is breaking on trying to appy the style to the form element.
thanks for any insight.
array1[0][0] = "Some Text";
array1[0][1] = "document.forms[0].PersonName";
for (i=0; i<array1.length; i++){
array[i][1].style.background = "#FCC";
}
This is breaking on trying to appy the style to the form element.
thanks for any insight.