I've encountered a peculiar situation multiple times where, despite using JavaScript to set certain table and div elements to display: none, their content still remains visible on the screen. I suspect it may be due to the complex structure of tables and divs mixed together.
Even though I meticulously ensure that the correct JavaScript syntax is used and confirm through debugging that the display value is indeed set to none, the issue persists. In one instance, upon inspecting the DOM with developer tools, all the affected elements and their children were successfully set to display:none.
This phenomenon has puzzled me on more than one occasion. Any ideas or guesses as to what might be causing this?
For reference, I am working in IE8 with IE7 compatibility mode enabled.
Grae