JeremyFagis / dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify
MIT License
974 stars 399 forks source link

Set the default image using javascript #89

Open anjanirajdev opened 6 years ago

anjanirajdev commented 6 years ago

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.

samirllorente commented 5 years ago
$('#inputId).attr("data-default-file", "imagePath");
$('#inputId).dropify():
yogendrakinja commented 4 years ago

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