jquery add text to start of element code example
Example 1: change text of element js
document.getElementById("p1").innerHTML = "New text!";
Example 2: jquery get element innertext
const copiedText = $('#element').text();
document.getElementById("p1").innerHTML = "New text!";
const copiedText = $('#element').text();