title: How to write on two input tag simultaneously by jquery?
body: <p>I have two Input tag on my page with a button  :</p>
  
  <pre><code>   &lt;input id="userName" style="direction: rtl" type="text" value="" runat="server" /&gt;
     &lt;input id="txt" style="direction: rtl" type="text" value="" runat="server" /&gt;
  
     &lt;asp:Button ID="Button1" runat="server" Text="" Style="display:none" OnClick="Button1_Click" /&gt;
  </code></pre>
  
  <p>i wrote a script which, [when] i click on Button1, put every thing on userName into txt:</p>
  
  <pre><code>   $('#Button1').click(function ()
          {
  
              $('#txt').value = $('#userName').value();
  
         });
  </code></pre>
  
  <p>but it doesn't work! what is the problem?</p>