...

View Full Version : Making Table Rows disappear...



ggallen
07-14-2003, 06:52 PM
I'm looking for some examples of manipulating
tables that were created by HTML, and not
created by javascripting.

ie. Adding/Removing rows, but more importantly
does each row of the table have the ability to have
it's ".style.display" set/reset?

Thanks
George

Danne
07-14-2003, 07:29 PM
You can put an id to the tr-element and use tr.style.display=(show?'block':'none');

Have a look at Vladdy's dynamic table example (http://www.vladdy.net/webdesign/DOM_Tables.html) for more info. I think the function to sort the table may help you. Look for:

function sort(TID, colNum,dir)

ggallen
07-14-2003, 07:35 PM
Originally posted by Danne
[B]You can put an id to the tr-element and use tr.style.display=(show?'block':'none');



I'll give this a try.

Thanks
George



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum