button onclick upload

Solutions on MaxInterview for button onclick upload by the best coders in the world

showing results for - "button onclick upload"
Serena
03 Apr 2016
1<input type="file" id="file" style="display:none;" />
2<button id="button" name="button" value="Upload" onclick="thisFileUpload();">Upload</button>
3
4<script>
5  function thisFileUpload() {
6    document.getElementById("file").click();
7  };
8</script>