title: ASP.NET show div on button click
body: <p>am trying to show a loading div on button click, but it is not working at the moment.</p>
  
  <p>Javascript :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(document).ready(function (e) {      
              $('#BtnSend').click(function () {
                  $('#&lt;%= loading.ClientID %&gt;').toggle("slow");
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>Div:</p>
  
  <pre><code>&lt;div id="loading" class="Loading" runat="server" visible="false"&gt;
    &lt;div class="loadingImg"&gt;
      &lt;img src="../Images/loading.gif" alt="loading" /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Button:</p>
  
  <pre><code>&lt;asp:Button ID="BtnSend" runat="server" Text="SEND" 
              onclick="BtnSend_Click" CssClass="pressbutton2" Height="36px" ClientIDMode="Static" /&gt;
  </code></pre>
  
  <p>the div is set to runat server so that I can change its visibility also through code.</p>