troubleshooting Question

JavaScript Replace INPUT TYPE=FILE with New, Blank INPUTS

Avatar of Bob-Villa
Bob-Villa asked on
7 Comments1 Solution712 ViewsLast Modified:
I upload photos to an iframe (8 boxes named and id'd PH1,PH2, etc...)
but it is annoying that after upload the file inputs still have the file path displayed.
I know you cannot set the value to NULL because of security but is there an easy way in Internet Explorer to replace the inputs with new ones having blank values but retaining the same name? Or possibly have them in a div and do something with innerHTML and replace a whole block of elements?

her's a loop that grabs each element.

var x=document.forms[0];
var z;
for (var y=1; y<=8; y++) {
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros