|
|
remove an element in javascript - Javascript
|
Views : 247
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Remove an element in javascript
To remove an element, use the removeChild() method of its parent element,
var rm = document.getElementById('test');
rm.parentNode.removeChild(rm);
It works fine... 
|
|
By Sanju, On - 2010-02-01 |
|
|
|