Is it possible to clear an <input type='file' />
control value with jQuery? I've tried the following:
$('#control').attr({ value: '' });
But it's not working.
Is it possible to clear an <input type='file' />
control value with jQuery? I've tried the following:
$('#control').attr({ value: '' });
But it's not working.
I got stuck with all the options here. Here's a hack that I made which worked:
and you can trigger the reset using jQuery with a code similar to this:
(jsfiddle: http://jsfiddle.net/eCbd6/)
On my Firefox 40.0.3 only work with this