Adding file inputs dynamically with jquery?

后端 未结 4 459
萌比男神i
萌比男神i 2021-01-20 00:29

To make my weppage as compatible as possible I will go with the regular file input, the problem is that I need to offer multiple uploads.

My thought is that when the

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-20 00:47

    Yes, you can just add a file input to the form as you would any other element:

    $("#theForm").append("");
    

    I thought this sounded familiar: [jquery]How do I add file uploads dynamically?

提交回复
热议问题