[Answer]-Jquery, django-deleteview: delete table row records

1👍

I’d just use on:

html:

<div class="modal-footer" id="{{obj.id}}">

jquery:

  $('#delete_submit').on('click', function() {
    var id = $('.modal-footer').attr('id');
    $.ajax({
        url: "your/delete/handler",
        type: "POST",
        data: { id : id },
    });

Leave a comment