secretsquirrel
Programmer
Hi guys,
I've got a page containing table x within table y. Table x is hidden. The page also contains yes and no radio buttons.
All I need is for table x to appear when the yes radio button is clicked.
I thought it would be a simple case of:
window.[table x].style.visibility = 'visible';
for the yes button, and
window.[table x].style.visibility = 'hidden';
for the no button, but when I run the page I get the error:
window.[table x].style is not an object.
Do I need some kind of reference like:
window.[table y].[table x].style.visibility = 'visible';
This only needs to work in IE.
Thanks in advance.
I've got a page containing table x within table y. Table x is hidden. The page also contains yes and no radio buttons.
All I need is for table x to appear when the yes radio button is clicked.
I thought it would be a simple case of:
window.[table x].style.visibility = 'visible';
for the yes button, and
window.[table x].style.visibility = 'hidden';
for the no button, but when I run the page I get the error:
window.[table x].style is not an object.
Do I need some kind of reference like:
window.[table y].[table x].style.visibility = 'visible';
This only needs to work in IE.
Thanks in advance.