How can I auto trigger file input? ie. in the link below I want to trigger upload button on load
DEMO
$("document").ready(function() { setTimeout(function() { $("#test1").trigger('click'); },10); $('#test1').click(function(){ alert('hii'); }) });
click event triggerd.
http://jsfiddle.net/j9oL4nyn/1/