26

I want to know how to delete the value of an input type file with Jquery.

More precisely what I call the value is when you upload a file from this input, but you haven't send the form.

I hope i'm understandable.

RajeshKdev
  • 6,365
  • 6
  • 58
  • 80
KeizerBridge
  • 2,707
  • 7
  • 24
  • 37

1 Answers1

56

You can do:

$(document).ready(function(){

   $('input').val("");

});
edonbajrami
  • 2,196
  • 24
  • 34