edit text in javascript code example
Example 1: 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 2: javascript element edit text
// example:
document.querySelector(`.message`).textContent = `New Message`;
// syntax:
// document.querySelector(`.<class-name>`).textContent = `<new-value>`;