javascript upload file without input

Solutions on MaxInterview for javascript upload file without input by the best coders in the world

showing results for - "javascript upload file without input"
Sofia
16 Jan 2017
1<style>
2 input {
3    display: block;
4    visibility: hidden;
5    width: 0;
6    height: 0;
7}
8</style>
9
10<input type="file" name="somename" size="chars">
11<button>Choose File</button>
12
13<script>
14$('button').click(function(){
15    $('input').click();
16});
17</script>