Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using
JavaScript
$('#file').val('');


But it is not supporting in IE. Is there any alternative of doing this?
Posted

Try $('#file').attr('value','');
 
Share this answer
 
v2
try this

JavaScript
$("#file1").replaceWith($("#file1").clone());
 
Share this answer
 
Comments
dirtyshooter 27-Apr-15 3:26am    
thanks Karthik.. That really worked.
Karthik_Mahalingam 27-Apr-15 4:23am    
Welcome Abhinav :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900