Replace HTML button with text/code when clicked in JS ?
- Yogesh Kumar
- 03-May-2022
- 0
function ReplaceButton() {
node = document.getElementById("MyButton")
node.insertAdjacentHTML("afterend", "<p>Some text</p>")
node.style.display = "none"
}
321 0
7
* Be the first to Make Comment