Get the Value of an asp:HiddenField using jQuery

后端 未结 8 2300
慢半拍i
慢半拍i 2020-12-15 16:36

I have two pages. From the first page, I open a modal with a querystring that holds that value of a client name. I then use this to set a hiddenfield on the modal that opene

8条回答
  •  心在旅途
    2020-12-15 16:56

    Include ClientIDMode="Static" in your code.

    var obj = $('#hidClientName').val();

    Or

    var obj = $('#<%=hidClientName.ClientID%>').val();

提交回复
热议问题