Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rousnay/2c61b1885e09dfaf25600ebe3d55d9bd to your computer and use it in GitHub Desktop.
Save rousnay/2c61b1885e09dfaf25600ebe3d55d9bd to your computer and use it in GitHub Desktop.
const fileInput = document.querySelectorAll('input[type="file"]');
console.log(fileInput);
fileInput.forEach((element, index)=>{
let newNode = document.createElement('span');
newNode.classList.add("file-custom");
element.after(newNode);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment