Answers for "choose file tag in bootstrp"

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

Browse Popular Code Answers by Language