alexa

Replace HTML button with text/code when clicked in JS ?

Replace HTML button with text/code when clicked in JS ?
 function ReplaceButton() {
    node = document.getElementById("MyButton")
    node.insertAdjacentHTML("afterend", "<p>Some text</p>")
    node.style.display = "none" 
}

321 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online

Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry