Answers for "javascript upload file without input"

0

javascript upload file without input

<style>
 input {
    display: block;
    visibility: hidden;
    width: 0;
    height: 0;
}
</style>

<input type="file" name="somename" size="chars">
<button>Choose File</button>

<script>
$('button').click(function(){
    $('input').click();
});
</script>
Posted by: Guest on January-10-2020

Code answers related to "javascript upload file without input"

Browse Popular Code Answers by Language