Copy the textbox value into another

dhirenkaunar-15094
Posted by dhirenkaunar-15094 under jQuery category on | Points: 40 | Views : 2051
-- Script tag ...
<script type="text/javascript">
$(document).ready(function () {
$('input[id$=txtUserName]').keyup(function () {
var txtClone = $(this).val();
$('input[id$=txtUpdateBox]').val(txtClone)
});
});
</script>

------ aspx control.
<asp:TextBox ID="txtUserName" runat="server" />
<asp:TextBox ID="txtUpdateBox" runat="server" />

Comments or Responses

Login to post response