jquery hide all elements with id code example
Example 1: javascript hide element by class
document.getElementsByClassName('class_name')[0].style.visibility='hidden';
Example 2: Javascript remove all child elements
var myDiv = document.getElementById("myDivID");
myDiv.innerHTML = "";//remove all child elements inside of myDiv