1

Hi I have an input field of type file and i want to change its value using jquery. How can in do that, please help me.Below is my html tag for same.

<input id="kb_file" type="file" class="file" name="multipartFile" contenteditable='false' style="display:none;"/>
tymeJV
  • 103,943
  • 14
  • 161
  • 157
Vikash Anand
  • 67
  • 5
  • 11

1 Answers1

9

You cannot mess with the value of a <input type="file" /> for obvious security reasons.

haim770
  • 48,394
  • 7
  • 105
  • 133