JeremyFagis/dropify

Can I change data-default-file with jQuery

PeterTough2 opened this issue · 0 comments

I want to update the data-default-file value and have a different image displayed

I tried this

var nameImage =  img;
$('#edit_profilephoto').dropify({
defaultFile: nameImage,
});

And this
$('#edit_profilephoto').attr('data-default-file', img);

Is there a special event call or function to trigger the change