title: Can't find DOM with document.getElementById in IE8
body: <p>I am trying to get a handle on a DOM by using document.getElementById("my_id") but not able to.
  There are two stages in my code flow:
  Stage 1 (works):</p>
  
  <pre><code>document.getElementById("my_text_field").style.visibility = "hidden";
  </code></pre>
  
  <p>or</p>
  
  <pre><code>document.getElementById("my_text_field").style.display= "none";
  </code></pre>
  
  <p>I don't know which one of the above ones get executed.</p>
  
  <p>Stage 2 (does not work):</p>
  
  <pre><code>document.getElementById("my_text_field").style.visibility = "visible";
  </code></pre>
  
  <p>or</p>
  
  <pre><code>document.getElementById("my_text_field").style.display = "table-row";
  </code></pre>
  
  <p>Both the stages are working fine in Firefox 3.6 (I have to use 3.6).
  But it seems like in stage 1 the DOM is getting hidden/invisible and therefore, IE8 can't find them using document.getElementById().</p>
  
  <p>Please advise.</p>
  
  <p>Thanks.</p>