Quote from
emo on October 11, 2021, 8:50 pm
Hi @llazzari , you can use javascript to do that.
Imagine the container with the code:
<h1>Test!</h1><br>
<h1 id="title">Hello world!</h1>
And you have a push button with this code to change the content:
beginjs
//change the first h1 element
document.getElementsByTagName("h1")[0].innerHTML = "changed test!";
//change the element with id=title
document.getElementById("title").innerHTML="changed world!";
endjs
Hi @llazzari , you can use javascript to do that.
Imagine the container with the code:
<h1>Test!</h1><br>
<h1 id="title">Hello world!</h1>
And you have a push button with this code to change the content:
beginjs
//change the first h1 element
document.getElementsByTagName("h1")[0].innerHTML = "changed test!";
//change the element with id=title
document.getElementById("title").innerHTML="changed world!";
endjs
luishp has reacted to this post.