title: Hide and show div when page load
body: <p>i have a div :</p>
  
  <pre><code>&lt;div id="postreply"&gt;
      &lt;asp:Label ID="lbStatus" CssClass="input-large1" runat="server" Text="Close" Width="600px"&gt;&lt;/asp:Label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>i try to hide div when page load :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  window.onload = function() {            
          var x = document.getElementById('lbStatus').innerText;
          if(x == "Close"){
              $("#postreply").hide();
          }
      }&lt;/script&gt;
  </code></pre>
  
  <p>anyone help me hide this div with lbStatus.Text = Close</p>