<input type="file" id="fileElem" multiple accept="image/*" style="display:none" onchange="handleFiles(this.files)"> <a href="#" id="fileSelect">Select some files</a> <div id="fileList"> <p>No files selected!</p> </div> When I selected 5 files: How to dynamically remove some of them?
I know how clear all files How can I clear an HTML file input with JavaScript?