Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE 11 : simple display:none not supported in row (tr) in table ?

$
0
0

Hello,

When you try to hide a line using display:none in a classic row (<tr>) of an html table, IE dosn't hide the row each time (like if IE doesn't refresh render each time).
In FF2->23, IE6->10, chrome (all versions) it's ok.
Thank you for your feedback.
Antoine

My test code :

<html><script language=javascript>
function hideOrShow(idElement) {
     element = document.getElementById(idElement);
     if (element.style.display=="none"){
            element.style = "";
        }
        else{
            element.style.display="none";
        }
    }</script><table border="1"><tr id="0"><td>
                line 0<input type="button" onclick="hideOrShow(1)" value="Hide/Show line 1"></td></tr><tr id="1"><td>
                line 1</td></tr><tr id="2"><td>
                line 2<input type="button" onclick="hideOrShow(3)" value="Hide/Show line 3"></td></tr><tr id="3"><td>
                line 3</td></tr></table></html>


PS sorry i remove my first article trying to remove my empty comment


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>