Edit Method in ASP.Net Core MVC why 'data-id' in javascript always contains 1 i want if i select item 2 so data-id is 2

前端 未结 0 2006
旧时难觅i
旧时难觅i 2020-12-02 16:01
(THIS IS JS)
$("#editBtn").click(function () {
    $.ajax({
        url: \'/Products/Edit\',
        data: {
            ID: $(this).attr(\'data-id\')
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题