change element tag javascript code example
Example 1: javascript change element id
var element = document.getElementById("oldID");
element.id = "newID";
Example 2: javascript set header text
var headingDiv = document.getElementById("head");
headingDiv.innerHTML = "<H3>Public Offers</H3>";
//Or with jQuery
$(".head h3").html("your new header");
Example 3: how to change html element in javascript
document.getElementbyid.innerHTML = "text";