alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

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" 
}

276 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