i used file control in a html page i want to remove the file location from control when user click on reset button.
$("#control").val("");
if i run this code he not work in Chrome but in Firefox
what i do to unselect the file who is not selected in file upload control.
how i can reset the controls without reset the whole form. are any thing exist to do this.
According to this article, you can use the following JavaScript method to clear the HTML input file control’s value:
Or, if refactored in jQuery, this should work as well: