How to get asp.net client id at external javascript file

前端 未结 5 1528
暖寄归人
暖寄归人 2020-11-28 12:58

When I use embedded javascript functions I can get client id of elements with this code:

document.getElementById(\'<%=buttonXXX         


        
5条回答
  •  清酒与你
    2020-11-28 13:37

    I use the following code in my .js file, when I have no other better choice.

    $("[id$='buttonXXX'])
    

提交回复
热议问题