How do you set the value of an input file using jquery?
$('input[type="file"]').val(value)
just doesn't seem to work.
Any thoughts?
How do you set the value of an input file using jquery?
$('input[type="file"]').val(value)
just doesn't seem to work.
Any thoughts?
Your syntax is correct, however you can't set a value of a file
input - this would be a huge security issue.
jquery uses javascript. You can't set/change the file path in a file input using javascript.