I can't get the clientid when using as external js file. Please help how to resolve this issue.
how to get clientid in external js file
Collapse
X
-
Tags: None
-
Inline JS:
==========
Code:<script> function test() { var getValue = document.getElementById('<%=TextBox1.ClientID%>').value; alert(getValue); } </script> <asp:TextBox id="TextBox1" runat="server" /> <asp:Button value="submit" id="btnSubmit" onclientClick="test();" />
How to do it ?Comment
Comment