Microsoft KB Archive/828527

= SELECT Element Stays Visible After You Use Dynamic HTML to Hide a Row =

Article ID: 828527

Article Last Modified on 9/19/2003

-

APPLIES TO


 * Microsoft Internet Explorer 6.0 Service Pack 1

-



SYMPTOMS
When you try to use Dynamic HTML to hide a table row, and the table uses the COL element, if you use the SELECT element in the row, the SELECT element may be visible even though the row is hidden.



WORKAROUND
To work around this problem, you can put the SELECT element within a DIV tag that uses the &quot;Display: None;&quot; style. To make the SELECT element visible, use the &quot;Display: Block;&quot; style. The following DHTML code sample shows one way to implement these styles dynamically.  

 Dim Flag Flag = true

Sub button1_OnClick if Flag then TableRow.style.display = &quot;none&quot; else TableRow.style.display = &quot;inline&quot;

if Flag then DivTag.style.Display = &quot;None&quot; Else DivTag.style.Display = &quot;Block&quot;

Flag = not Flag End Sub  

   



STATUS
Microsoft has confirmed that this is a problem in Microsoft Internet Explorer 6.

Keywords: kbbug kbnofix KB828527

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.