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++) {
z=eval("x.PH"+y);
}
Our community of experts have been thoroughly vetted for their expertise and industry experience.