Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #upload #file #input
ADD COMMENT
Topic
Name
1+3 =