I have a form which contains quantity and subtotal input boxes for
ordering things, i use javascript to calculate the value to be placed
in the subtotal box by iterating through a document.myForm[] array
(where myForm is the name of the form). The indexing I use works fine
in IE6 and Firefox 0.10.1, however when testing in NN6, i noticed that
the myForm[] array was also including <label> elements, whereas in ie6
and ff it only includes the input boxes. I have managed to detect when
this occurs and change the index for when this occurs, however I would
like to know whether any other browsers have quirks like this, I don't
particularly want to have to install IE4 or 5.5 etc...
Which is more compatible:
document.myForm.item1Quantity.value or
document.myForm[0].value
for referencing form elements?