|
how to remove a div element completely
|
| View previous topic :: View next topic |
| Author |
Message |
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
| |
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
montanarry, div.parentNode.removeChild(div); might easier to use
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
|
I tried "ddocument.removeChild(document.getElementById('notice'));" but that didn't work =/
-d in the beginning.
Reply with quote
|
| |
|
|
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
montanarry, var div = document.getElementById('notice'); div.parentNode.removeChild(div);
Reply with quote
|
| |
|
|
|