Clearing file input field
Hi,
I am trying to clear the File input on certain criteria. I am trying the following code and testing in IE and it doesnot work.
Could anyone please help?
//For IE
$("#filesToUpload").replaceWith($("#filesToUpload").clone(true));
//For other browsers
$('#filesToUpload').val("");
Thanks.