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

Popular posts from this blog

Kendo Control(Dynamics)

Override Authorize Filters in MVC

Form Validation