dcsimg
How to reset an input type = "file"?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, March 13, 2003 11:12 PM

I've a couple of fields in a form but I would like to reset only the input type="file" if the user chooses not to proceed when a js confirm is prompted...


Is there a way to do this..?


Cheers..


Jason

Re: How to reset an input type = "file"?

Posted By:   Nitesh_Naveen  
Posted On:   Friday, March 14, 2003 02:35 AM

You cannot change/set the value of the file input through javascript for security reasons. Probably you refresh the page if you really need to reset it!!!
About | Sitemap | Contact