Answers for "oncllick upload file in javascript"

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

Code answers related to "oncllick upload file in javascript"

Browse Popular Code Answers by Language