Hi,
I'm, having some problems with this function.
function displayElements ()
{
for (i=0;i<document .forms[0].elements.lengt h; ++i)
{
document.writel n(document.form s[0].elements[i].value);
}
}
I'm trying to loop through the only form (form[0]?) on my webpage and
display all their values. For some reason I'm only being shown the first
value?
I'm not sure what I'm doing wrong, any help much appreciated.
Thanks
I'm, having some problems with this function.
function displayElements ()
{
for (i=0;i<document .forms[0].elements.lengt h; ++i)
{
document.writel n(document.form s[0].elements[i].value);
}
}
I'm trying to loop through the only form (form[0]?) on my webpage and
display all their values. For some reason I'm only being shown the first
value?
I'm not sure what I'm doing wrong, any help much appreciated.
Thanks
Comment