input type=“file” auto click

后端 未结 3 559
鱼传尺愫
鱼传尺愫 2021-01-13 08:53

How do I automatically open the browse dialog of an input type=\"file\" when the page first opens?

3条回答
  •  孤城傲影
    2021-01-13 09:40

    fire the click event on the button on document ready

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

提交回复
热议问题