Search code examples
jquerydropify

clear image in only one dropify


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(); 

Solution

  • ".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"