Dropify from Github
Anybody can help me with this? I want to manually remove uploaded image inside this dropify. I have more than one dropify in a page. Whenever I try to remove, all of the images inside each dropify will be removed.
Can someone help me? Because I think this library is already inactive.
Whenever I use this code in one dropify, all other dropify images will also be removed.
$(".dropify-clear").click();
$(".dropify-clear").trigger("click");
worked for me
Get the parent wrapper of the element with the id, then trigger the click on the remove button.
for example
$('#image1').parent().find(".dropify-clear").trigger('click');
".dropify-clear"
refers to all elements with the class name dropify-clear
.
You should add an id to the specific element you want to remove and then refer to it in jQuery like this: "#idName"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With