0
How i can change some text or style or any thing on wep page when i use it
for example when click submit some text on the other plase of same pege should change onthe same moment.
2 odpowiedzi
0
let button = document.getElementByI("button-id);
let paragraph = document.getElementById("text-id);
button.addEventListener("click", function(){ paragraph.innerHTML = "some text";});
Get the buttom and the element you want to modify, and add a click event listener to the button.