Answers for "choose file button bootstrap"

CSS
0

bootstrap input file

<div class="custom-file">
 <input type="file"  class="custom-file-input" id="inputGroupFile01">
<label class="custom-file-label" for="inputGroupFile01">Choose file</label>
</div>
Posted by: Guest on April-25-2021
0

choose file bootstrap show filename

document.querySelector('.custom-file-input').addEventListener('change',function(e){
  var fileName = document.getElementById("myInput").files[0].name;
  var nextSibling = e.target.nextElementSibling
  nextSibling.innerText = fileName
})
Posted by: Guest on October-01-2021

Code answers related to "choose file button bootstrap"

Browse Popular Code Answers by Language