title: How to replace html button with plain text
body: <p>How do you replace a button with whatever words were on the button before? I was looking at an answer to another similar question, which said to use something like:</p>
  
  <pre><code>var myBtn = document.getElementById("buttonId"),
  mySpan = document.createElement("span");
  mySpan.innerHTML = myBtn.innerHTML ;
  myBtn .parentNode.replaceChild(mySpan, myBtn);
  </code></pre>
  
  <p>but that had made what other buttons do change. Does anyone know another way to change a button to regular text? </p>
  
  <p>I know that that code works just by itself, but it doesn't work with my code for some reason, so I don't really care what's wrong with that code. I'm just wondering if anyone knows another way to do it.</p>
  
  <p>Thanks</p>