How to bind JQuery event to a selector with variable id or class?

后端 未结 1 1095
挽巷
挽巷 2021-01-28 20:01

I have a page that can have a variable number of tables. Each table has an id with a number associated with it (for example, table1, table2, table3). A column in each table con

相关标签:
1条回答
  • 2021-01-28 20:32

    You can concatenate an ID string in the selector:

    $("#" + invoicelink)...
    
    0 讨论(0)
提交回复
热议问题