title: Keydown function is not working on aspx page.!
body: <p>Am trying to add input on one <code>textbox</code> to other <code>textbox</code> on same time using jquery <strong>keydown</strong> . For some reason its not working, Am new to coding so helps and criticism will be appreciated..!</p>
  
  <p>code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;div&gt;
      &lt;asp:Label ID="Label1" runat="server" Text="Text Box1"&gt;&lt;/asp:Label&gt;&lt;br/&gt;
      &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br/&gt;&lt;br/&gt;
      &lt;asp:Label ID="Label2" runat="server" Text="Text Box2"&gt;&lt;/asp:Label&gt;&lt;br/&gt;
      &lt;asp:TextBox ID="TextBox2" runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;script&gt;
  
      $('#TextBox1').keydown(function () {
          $('#TextBox2').val($(this).val())
      })
  
  &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p><a href="https://i.stack.imgur.com/cSbtM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cSbtM.jpg" alt="enter image description here"></a></p>