forked from Deuxfleurs/guichet
6 lines
243 B
JavaScript
6 lines
243 B
JavaScript
|
document.querySelector('.custom-file-input').addEventListener('change',function(e){
|
||
|
var fileName = document.getElementById("image").files[0].name;
|
||
|
var nextSibling = e.target.nextElementSibling
|
||
|
nextSibling.innerText = fileName
|
||
|
})
|