How to Remove the child div from parent div using javascript
How to Remove
the child div from parent div using javascript
function removeElement(elementId) {
//
Removes an element from the document
var element = document.getElementById(elementId.id);
element.parentNode.removeChild(element);
}
elementId: this is the parent div
element.id: this is the id of the
parent div
Comments
Post a Comment