I want to customize the file input button, so I use this code to create an file input element
function inputBtn(){
    var input=document.createElement('input');
    input.type="file";
    setTimeout(function(){
        $(input).click();
    },200);
}
<button id="ifile" onclick="inputBtn()">create</button>
However, when I click create, it shows nothing.
 
    