Home >Web Front-end >JS Tutorial >js clears the value range of type equal to file in input (sample code)_javascript skills
As shown below;
var objFile = document.getElementById('fileID');
objFile.outerHTML=objFile.outerHTML.replace(/(value ="). "/i,"$1"");