How can I Dynamically Change ColSpan
Posted on 2003-11-04
I have a table in which the top row is a header with some title text and stuff
The following rows contain say 8 cells
I have given the user the ability to hide the cells
So when they hide a cell all the cells from all the rows at that location are hidden
the problem is the title row still has colspan=8 and shows some empty space when
there is only 7 (or lower) cells below it.
So hide a column, colspan needs to be reduced, can't do it ....
tbody.children.children.setAttribute( "colspan", "2" );
' row 0 col 0 set colspan to 2
but this doent work!