G
gregpinero
Would someone mind tell me what I am doing wrong here? I want to find
all of the input elements within a div tag with id newID and blank out
the values in the inputs. Nothing seems to happen when I run this
code.
var new_copy=document.getElementById('newID');
var inputs = new_copy.getElementsByTagName('input');
for (inp in inputs) {
inp.value='';
}
Thanks,
Greg
all of the input elements within a div tag with id newID and blank out
the values in the inputs. Nothing seems to happen when I run this
code.
var new_copy=document.getElementById('newID');
var inputs = new_copy.getElementsByTagName('input');
for (inp in inputs) {
inp.value='';
}
Thanks,
Greg