In IE I have not trouble setting the style's display property to "none" or "inline" to hide and display a row of a table. In Netscape 6.x the contents of the row are hidden but the row doesn't collapse. When I set it back to "inline" the contents are displayed but the row height stretches.
Here's a very simple sample (click 'switch'):
-----------------
<html>
<head>
</head>
<script language="javascript" type="text/javascript">
function switchIt(id)
{
o=document.getElementById(id);
o.style.display = o.style.display == 'inline'?'none':'inline';
}
</script>
<body>
<div onclick="javascript:switchIt('details')">Switch</div>
<table border=1>
<tr id="details" style="display:inline">
<td bgcolor="cccccc" > hello </td>
</tr>
</table>
</body>
</html>
-----------------
Is there another way to do this?
Thanks,
-David
Here's a very simple sample (click 'switch'):
-----------------
<html>
<head>
</head>
<script language="javascript" type="text/javascript">
function switchIt(id)
{
o=document.getElementById(id);
o.style.display = o.style.display == 'inline'?'none':'inline';
}
</script>
<body>
<div onclick="javascript:switchIt('details')">Switch</div>
<table border=1>
<tr id="details" style="display:inline">
<td bgcolor="cccccc" > hello </td>
</tr>
</table>
</body>
</html>
-----------------
Is there another way to do this?
Thanks,
-David