hello,
i want to assign textbox value to label on textbox key up event please advice
function confirmbid() { var tID = '<%= TextBox1.ClientID %>'; var CID = '<%= Label10.ClientID %>'; cid.innerHTML = tId.value; }
Hi nauna,
Refer below sample.
HTML
<html xmlns="https://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function confirmbid(ele) { document.getElementById("lblMessage").innerHTML = ele.value; } </script> </head> <body> <form id="form1" runat="server"> <div> Name : <input type="text" id="TextBox1" onkeyup="confirmbid(this)" /> <br /> <span id="lblMessage"></span> </div> </form> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.