How to pass a parameter from a link element to a modal window?

后端 未结 3 1408
感情败类
感情败类 2020-12-21 13:54

I have a table. In a cell of the table there is a link like this:

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-21 14:10

    var data-id = $(this).attr('data-id');
    

    So here in data-id you wll get your "XYZ"

提交回复
热议问题