简体   繁体   中英

One file upload at a time in blueimp jquery upload

I am using blueimp jquery file upload to upload files. However I want a single file to be selected at a time. How do I disable selecting multiple file selections, not meant removing multiple from input. I do not want add another file when one file is selected

您可以在change事件中使用Node.removeChild()或将元素style设置为display:none来从document中删除元素

You can disable the element. By using

 document.getElementById("ElementID").disabled = true; 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM