This is like the simplest code to write but I don’t know why i am not getting my desired outcome. I tried to write a JavaScript code that will display a TextBox value when user types in the textbox. For example, as I am typing 100, immediately the label should display same value; once I type anything, it displays on the label immediately. But from I tried, when I type 100 is see 10 display on label
<div class="input-group">
<asp:TextBox ID="TexBox1" runat="server" CssClass="form-control" Font-Size="14pt" Text="" placeholder="100" onKeyPress="settext();" />
<asp:Label ID="Label11" runat="server" Visible="false" Text="1"></asp:Label>
</div>
<div class="input-group">
<asp:Label ID="outcome" runat="server" Text=""></asp:Label>
</div>
<script type="text/javascript">
function settext() {
document.getElementById('<%=Label4.ClientID%>').value = document.getElementById('<%= TextFee.ClientID %>').value;
}
</script>