The JavaScript method.(We are writing a custom function)
function removeElement(objID) {
var node = document.getElementById(objID);
node.parentNode.removeChild(node);
}
The JQuery method.
$("#objID").remove();
Its all about Keeping it Simple.
What do you say? :)
Read more...