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