+ 1
How to clear <p> with Button+js ? HelpHelp
How to clear <p> with Button+js ? HelpHelp
4 Antworten
+ 3
Hi.
1. You have to create a function in js.
2. Write document.getElementById("id of your p").innerText=""; inside of the function.
3. Add an onclick event to the button.
4. Test it.
This should work.
+ 1
^up.
0
Thx
0
The work it.