function CopyName() {var name = $("#<%=txtName.ClientID%>").val(); //get value$("#<%=txtCopyName.ClientID%>").val(name); //set valuereturn false; }
http://www.dotnetjalps.com/2011/09/jquery-and-aspnet-set-and-get-value-of.html