Input type file open when loading page

0

I have the following input:

<input type="file" accept="image/*" capture="camera" style="display:none" id="capturar">

I would like to load the page and open the field to select the file. I tried the following in jquery:

$(document).ready(function(e) {
    $("#capturar").click();
}); 

But without result.
Any help?

    
asked by anonymous 08.02.2017 / 17:49

0 answers