jmelonis
asked on
Referencing a division
I need to set a division to hidden when a certain event happens. I pass x to determine what division should be hidden. So basically I need to know how I can 'run' this string.
//x is an integer
temp2="division"+x+".style .visibilit y = hidden";
eval(temp2);
Or is it possible to reference the division by
document.div[x].style.visi bliity = "hidden"
????
//x is an integer
temp2="division"+x+".style
eval(temp2);
Or is it possible to reference the division by
document.div[x].style.visi
????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER