title: Rewriting a div using javascript
body: <p>I am trying to rewrite a  tag using Javascript. The code looks like this</p>
  
  <pre><code>&lt;div id="captcha" style="display: none;"&gt;
      [content]
  &lt;/div&gt;
  </code></pre>
  
  <p>So I am trying to rewrite the entite tag so it removes the styling</p>
  
  <pre><code>"style="display:none;" 
  </code></pre>
  
  <p>From the tag on pageload. I already have this code, but I cannot seem to get it to work:</p>
  
  <pre><code>var divv = document.getElementById("captcha");
  divv.innerHTML = divv.innerHTML.replace("style="display: none;", "");
  </code></pre>