dynamically while uploading how to deselect empty file in jquery code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;