Backbonejs how to pass the parameter in this.model.destroy()


In template:-

 

<a class="btn btn-danger" id="delete">
                        Delete
                    </a>




In Views:-

 

events: {
        "click #delete": "deleteConfirm"
    },


    deleteConfirm: function() {
        if (!confirm("Want to delete ?")) {
            return;
        } else {
            this.delete();
        }
    },


    delete: function() {
        this.model.destroy({
            data: $.param({
                address: add
            }),
            success: function() {
                alert("Deleted Successfully");
            }
        });
    }