change the inner html text of single id multiple plase, change at one line script
<!DOCTYPE html>
<html>
<body>
<p id="demo">click</p>
<p id="demo">Click</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "CHENGED";
}
</script>
</body>
</html>
i won't to one click to all id text change