asp.net - Find asp hiddenfield in jquery script file -
i had hidden field this
<asp:hiddenfield id="hfprdid" value="hooray" runat="server" />
and trying acces value jquery file this
alert($("#'<%=hfprdid.clientid %>'").value);
but throws error this
error: error: syntax error, unrecognized expression: #'<%=hfprdid.clientid %>'
try:
alert($("#<%= hfprdid.clientid %>").val());
Comments
Post a Comment