Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to hide nested form from jQuery under IE8
    primarykey
    data
    text
    <p>An html segment with a div containing a form containing a table:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;!-- xmlns="http://www.w3.org/1999/xhtml" lang="en" --&gt; &lt;head&gt; &lt;style type="text/css"&gt; #content{position:relative} table {border-color:#999;border-style:solid} &lt;/style&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;button onclick="javascript:$('.content-panel').toggle();"&gt;Toggle&lt;/button&gt; &lt;div id="content"&gt; &lt;div class="content-panel"&gt; &lt;form action='' method='post'&gt; &lt;select&gt; &lt;option&gt;a &lt;/option&gt; &lt;/select&gt; &lt;table&gt; &lt;tr&gt;&lt;td&gt;ABCDEF&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The toggle button should hide the form and its nested table, but does not do so under IE8. (version 8.0.60001) The form content gets hidden, but the table border continues to show, and retains its size. It is related to standards mode; it disappears in quirks-mode.</p> <p>Does anybody have a workaround for this?</p> <p>This example page is reduced about as far as I can reduce it. If I remove the select or either of the divs, the problem disappears. The the select must be present, and the table needs to be nested in the form, as it will contain form elements.</p> <p>The page itself is at: <a href="http://dev.rdbhost.com/rdbadmin/mainProbDemo.html" rel="nofollow noreferrer">http://dev.rdbhost.com/rdbadmin/mainProbDemo.html</a></p> <p>I posted this problem earlier with an overly simplified example, which was not reproducible. Thank you if you looked at it then.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload