If someone can help:
Try to hide/show some rows in a HTML table, setting the style display:none
or display:block
attributes in some table rows.
The problem is that if I set the display:block
, seems to every data in one column, the expanded rows are lost the width of the table cells.
It is currently Firefox browser.
The toggle script is:
<script language="javascript">
function toggle_it(itemID){
// Toggle visibility between none and inline
var Nondisp = document.getElementsByClassName(itemID)
for( var i=0; i < Nondisp.length ; i++)
{
if ((Nondisp[i].style.display == 'none'))
{
Nondisp[i].style.display = 'block';
} else {
Nondisp[i].style.display = 'none';
}
}
}
</script>