Possible Duplicate:
In JavaScript can I make a “click” event fire programmatically for a file input element?
I have naively tried the following to open the file picker programmatically with JavaScript (see fiddle here):
<input type='file'>
<script>
    $(function () {
        $('input').click();
    });
</script>
The above doesn't work. How can I open the file picker of a input type='file' with JavaScript?
 
     
     
     
    