.Net Textbox returns "undefined" value when trying to access from Javascript/jQuery
I've got this textbox which I'm trying to access in Javascript/jQuery: <asp:Textbox ID="txtChosenTime" runat="server"></asp:Textbox> I've tried a handful of variations on: var TestVal = $("<%=txtChosenTime.ClientID%>"); console.info(TestVal.value); Also for example: var TestVal = $("<%=txtChosenTime.ClientID%>").value; console.info(TestVal); Or without the $ I'm getting…