Answers for "choose file bootstrap show filename"

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

input file type bootstrap

<div class="mb-3">
  <label for="formFileSm" class="form-label">Small file input example</label>
  <input class="form-control form-control-sm" id="formFileSm" type="file">
</div>
Posted by: Guest on September-20-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 "Javascript"

Browse Popular Code Answers by Language