Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Add remove link dropzone

$(".dz-remove").on("click", function (e) {
     e.preventDefault();
     e.stopPropagation();

     var imageId = $(this).parent().find(".dz-filename > span").text();

     $.ajax({
     url: "Your url here",
     data: { imageId: imageId},
     type: 'POST',
     success: function (data) {
          if (data.NotificationType === "Error") {
               toastr.error(data.Message);
          } else {
               toastr.success(data.Message);                          
          }},
          error: function (data) {
               toastr.error(data.Message);
          }
     })

});
Comment

Add remove link dropzone


init: function() {
 addRemoveLinks: true, 

Comment

PREVIOUS NEXT
Code Example
Javascript :: appearing datepicker behind the modal 
Javascript :: get all files in directory recursively nodejs 
Javascript :: javascript is array or object 
Javascript :: react-navigation 
Javascript :: how to get MathJax 
Javascript :: jquery label with text 
Javascript :: map method js 
Javascript :: age validation jquery 
Javascript :: get a header from postman repsonse 
Javascript :: How To Generate a Table With JavaScript 
Javascript :: js get children 
Javascript :: react: create form change state on input 
Javascript :: convert string to int javascript 
Javascript :: Make Floating label TextInput in react native 
Javascript :: express-session install 
Javascript :: module.exports in js 
Javascript :: What is array.push in javascript 
Javascript :: how to reverse array in javascript 
Javascript :: binary to decimal javascript 
Javascript :: angular9 spy 
Javascript :: address format json 
Javascript :: jquery form validation 
Javascript :: headless ui modal 
Javascript :: lodash filter array objects 
Javascript :: download file in react 
Javascript :: js 1 minute sleep 
Javascript :: javascript sets 
Javascript :: sort object properties by value javascript 
Javascript :: setting live reload sublime text 3 
Javascript :: rngesturehandlermodule.default.direction react native 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =