title: Get value of ASP.NET Webform TextBox using JS/JQuery
body: <p>I have an asp control for a textbox and a script that's trying to get the value from the textbox but it wont fire the alert:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtEmailList" runat="server" TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;
  
  &lt;script&gt;
      $(document).ready(function () {
          $("#btnCopyAll").click(function () {
              alert(document.getElementById('#txtEmailList').value);
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>alert(document.getElementById('&lt;%txtEmailList.ClientID%&gt;'));
  </code></pre>
  
  <p>As per <a href="https://stackoverflow.com/questions/5039544/getting-textbox-value-in-javascript">this</a> answer, but it did not work.</p>
  
  <p>How do I accomplish this?</p>