How to get Id value by clicking Edit button on the same row of DataTable

后端 未结 4 399
滥情空心
滥情空心 2021-01-15 08:32

I use jQuery Datatable for listing records and add an Action button (Edit) for editing the record on a modal dialog. If I select a row I can get th

4条回答
  •  时光说笑
    2021-01-15 09:33

    Here's the full source code. Hope this helps :)

    //when button (edit button here) is clicked.... Note: no need id for buttons too, just use 
    
    
    Id Name Surname Action
    1 Hans Jahnsen
    2 Robert Boylstat
    3 Jim Alexi

提交回复
热议问题