1$(".dz-remove").on("click", function (e) {
2 e.preventDefault();
3 e.stopPropagation();
4
5 var imageId = $(this).parent().find(".dz-filename > span").text();
6
7 $.ajax({
8 url: "Your url here",
9 data: { imageId: imageId},
10 type: 'POST',
11 success: function (data) {
12 if (data.NotificationType === "Error") {
13 toastr.error(data.Message);
14 } else {
15 toastr.success(data.Message);
16 }},
17 error: function (data) {
18 toastr.error(data.Message);
19 }
20 })
21
22});