Answers for "button onclick upload"

0

button onclick upload

<input type="file" id="file" style="display:none;" />
<button id="button" name="button" value="Upload" onclick="thisFileUpload();">Upload</button>

<script>
  function thisFileUpload() {
    document.getElementById("file").click();
  };
</script>
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language