Hi,
I have an onchange method for a select box that goes something like
this (the select is in a form named aForm):
function page_on_change( ) {
pageElement = aForm.my_page_i d;
aForm.nav_page_ name.value =
pages[pageElement.opt ions[ pageElement.sel ectedIndex ].value];
var si = pageElement.sel ectedIndex;
for ( i = 0 ; i < pages.size ; i++ ) {
document.getEle mentById("id_" + i).style.displa y='none';
}
document.getEle mentbyId("id_" + si).style.displ ay='none';
}
IE fails on the statement:
document.getEle mentbyId("id_" + si).style.displ ay='none';
and says it doesn't support this property.
What is the workaround?
Thanks.
I have an onchange method for a select box that goes something like
this (the select is in a form named aForm):
function page_on_change( ) {
pageElement = aForm.my_page_i d;
aForm.nav_page_ name.value =
pages[pageElement.opt ions[ pageElement.sel ectedIndex ].value];
var si = pageElement.sel ectedIndex;
for ( i = 0 ; i < pages.size ; i++ ) {
document.getEle mentById("id_" + i).style.displa y='none';
}
document.getEle mentbyId("id_" + si).style.displ ay='none';
}
IE fails on the statement:
document.getEle mentbyId("id_" + si).style.displ ay='none';
and says it doesn't support this property.
What is the workaround?
Thanks.
Comment