PDA

View Full Version : Removing a form element with removeChild, doesn't work in IE


bcarl314
08-28-2007, 03:21 PM
I have a file input that I want to add and remove from the page. Using the following code it works perfectly in Firefox, but the file input doesn't remove when using IE (6 or 7). PHP: --------- var myFileElements = document.getElementsByName("img[]"); var count=myFileElements.length-1; for...