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.

8th Aug 2018, 8:23 AM
Omar Muhammad Nofal
Omar Muhammad Nofal - avatar
2 ответов
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.
8th Aug 2018, 8:56 AM
Jeroen van der Laan
Jeroen van der Laan - avatar