javascript upload file without form code example
Example: 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>