JeremyFagis/dropify

Set the default image using javascript

Opened this issue · 2 comments

Try to set the image using javascript
like
$('#inputId).attr("data-default-file", "imagePath");
It does not show on screen but when you inspect the element , the image path will be seen.

$('#inputId).attr("data-default-file", "imagePath");
$('#inputId).dropify():

$('.dropify-render > img').attr('src' imageUrll);