replace div with another div jquery code example Example: javascript replace content of div document.getElementById("test").innerHTML = "new content"