当用户单击是时删除数据 POPOVER CONFIRMATION

delete data when user click yes POPOVER CONFIRMATION

我正在使用 Bootstrap 插件来使用 Popover 就地确认框。当用户单击“是”按钮时,我想删除一条记录。我怎样才能做到这一点? link Bootstrap 插件

我的按钮

  <a href="#" id="@applicant.Id"  class="btn btn-outline purple-sharp  uppercase" data-btn-ok-label="Bəli"  data-toggle="confirmation"  data-placement="right" data-original-title="" title="Are you sure?" aria-describedby="confirmation64993">

                                    <i class="fa fa-trash" ></i> Delete
                                </a>

<a href="#" id="@applicant.Id"  class="btn btn-outline purple-sharp  uppercase delete-confirmation" data-btn-ok-label="Bəli"  data-toggle="confirmation"  data-placement="right" data-original-title="" title="Are you sure?" aria-describedby="confirmation64993">

      <i class="fa fa-trash" ></i> Delete
</a>

// You should replace the deleteElement() function with your code
<script>
    $('.delete-confirmation').confirmation({
         onConfirm: function(event) {
              deleteElement();
         }      
    });
</script>