i have to set the label text as the value entered in textbox ..but ths script is not working whr i am doing wrong
<script type="text/javascript">
function getVal() {
document.getElementById('lbl').innerText = document.getElementById('TextBox1').value;
};
</script>
<div>
<asp:Label ID="lbl" runat="server" Text="Label"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="getVal" />
</div>