Link to home
Start Free TrialLog in
Avatar of GVNPublic123
GVNPublic123

asked on

HTML/Javascript help

Ok,

So lets say I have a table:
<table>

</table>

Now within this table I have rows. What if I want to remove 1 row?
I tried:
<div id='1234'><tr><td></td></tr></div>

And than with javascript:
document.getElementById('1234').style.display = 'none'

But it doesnt work. It does however work if whole table is in div, but I just need to be able to remove specific rows on live page.

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of yawkey13
yawkey13
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GVNPublic123
GVNPublic123

ASKER

I just figured it out. I dont need to use <div> but can put id to <tr> and that works. Thanks anyway.
oh yawkey didn't see your response....