What is best method to find a ASP.Net control using jQuery?

后端 未结 4 2022
我寻月下人不归
我寻月下人不归 2021-02-07 11:53

In implementing my first significant script using jquery I needed to find a specific web-control on the page. Since I work with DotNetNuke, there is no guaranteeing the control

4条回答
  •  失恋的感觉
    2021-02-07 12:20

    $("#<%= cboPanes.ClientID %>")
    

    This will dynamically inject the DOM ID of the control. Of course, this means your JS has to be in an ASPX file, not in an external JS file.

提交回复
热议问题