title: JavaScript - control.style.display = "none"; and control.style.display = "";?
body: <p>When I created a label I set it's display to none in the designer.</p>
  
  <pre><code>&lt;asp:Label ID="label1" runat="server" style="display:none;" Text="LABEL" asp:Label&gt;
  </code></pre>
  
  <p>I use javascript to turn the label visible by:</p>
  
  <pre><code>var lbl = document.getElementById('label1');
  lbl.style.display="";
  </code></pre>
  
  <p>WHen I do this the space is created where the label would be on the form but the label itself doesn't show up. I have tried </p>
  
  <pre><code>lbl.style.display="inline";
  lbl.style.display="block";
  </code></pre>
  
  <p>just to see if the label would show up. Still nothing though. Just the extra space where the label would be is created.</p>