Change text select files and no file selected…

I have found this in a forum. It seems to be close to what I need.
You can hide the input by putting it in a div that is height:0px and overwflow:hidden . After adding a button or other html element, you can style however you like. In the onclick event you get the input field using javascript or jQuery and click on it:

choose file function chooseFile() { $(“#fileInput”).click(); }
Now the input is hidden, but you can style the button as you like, it will always open the file input on click.
If you don’t want to use jQuery, replace the script tag with this script tag:
function chooseFile() { document.getElementById(“fileInput”).click(); }

But I don’t know where to put the script, my notions are basic.

AnswerQuote

Answered: 05/14/2018 1:33 pm

See also  problem translating Modern Events Calendar plugin
Loading Facebook Comments ...
Loading Disqus Comments ...