hankknight
asked on
style.display = "table-row" - IE6 error
Hello,
This does not work with IE6 (it gives an error)
new_value = "table-row";
document.getElementById("p ageHeader" ).style.di splay = new_value;
And looks very poorly formated in FF:
new_value = "block";
document.getElementById("p ageHeader" ).style.di splay = new_value;
Any ideas?
This does not work with IE6 (it gives an error)
new_value = "table-row";
document.getElementById("p
And looks very poorly formated in FF:
new_value = "block";
document.getElementById("p
Any ideas?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Setting display to "" will reset only element's inline style display value. If some CSS rule applies to the element, then resetting the inline value will enable that CSS rule. If it was defined so that the element is not to be displayed, then switching between 'none' and '' will give no result (the element will remain hidden).