Reputation: 1672
I want to be able to select a single element within the previewtemplate of a single image, such as:
//I'm passing the file to the function
MyDropzone.on('complete', function(file){
// select e.g. the .dz-success-mark for this file and make it visible
myselectedelement.css('display', 'block');
}
I am passing file
, but how do I get the .dz-success-mark
within the template of that file
?
Upvotes: 1
Views: 494
Reputation: 130
You can access your DOM node this way (jquery example)
MyDropzone.on('complete', function(file){
$(file.previewElement).css('display', 'block');
}
Upvotes: 1