javascript how to delete element by id and add new in spesific place code example
Example: javascript remove element by id
//removing element by ID
var element = document.getElementById("myElementID");
element.parentNode.removeChild(element);
//removing element by ID
var element = document.getElementById("myElementID");
element.parentNode.removeChild(element);