DataTables remove row button

前端 未结 3 772
感情败类
感情败类 2021-01-07 06:56

I am trying to have my script delete the row completely once the \"locatebutton\" has been pressed. I have the following code however I cannot seem to get it working right.

3条回答
  •  心在旅途
    2021-01-07 07:48

    I was able to accomplish this with the following

    $("#dataTables-example").on('click', '.btn-info', function () {
            $(this).parent().parent().remove();
        });
    

提交回复
热议问题