michelle
06-17-2003, 06:43 AM
<form id="myform">
<input type="text" name="stuff[0]">
<input type="text" name="stuff[1]">
</form>
How do I access the different values of this?
I have tried
document.myform.stuff[0].value;
but this only returns an error saying:
document.myform.stuff.0 is null
It seems to me that javascript can't cope with formfields in arrays?
Any thoughts?
// Michelle
<input type="text" name="stuff[0]">
<input type="text" name="stuff[1]">
</form>
How do I access the different values of this?
I have tried
document.myform.stuff[0].value;
but this only returns an error saying:
document.myform.stuff.0 is null
It seems to me that javascript can't cope with formfields in arrays?
Any thoughts?
// Michelle