I want to retrieve the textbox value in javascript. Simple, but it doesn't work for me, as it returns null/undefined as output. The code:
<asp:TextBox
ID = "lbl1"
ClientIDMode = "Static"
runat = "server"
Text = "http://test/test1/dilse.mp4"
Visible = "false">
</asp:TextBox>
<asp:Button
ID = "btnValidate"
runat = "server"
Text = "Get Values"
OnClientClick = "sourceval();
/>
Javascript:
var source = document.getElementById('lbl1').innerHTML;
function sourceval()
{
alert(source);
}