0

I have a form that consists of indexed fields like:

<input type="text" name="formItems[0].part" value="TK02">
<input type="text" name="formItems[0].price" value="13.0">
<input type="text" name="formItems[0].qty" value="1">

<input type="text" name="formItems[1].part" value="AG-1">
<input type="text" name="formItems[1].price" value="7.0">
<input type="text" name="formItems[1].qty" value="10">

In netscape/firefox, i can access the qtyOrdered value using:

document.forms['ShoppingCartForm'].elements['formItems[0].qty'].value

How do i access the qty field in Internet Explorer?

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by digital-ether
0

I have a form that consists of indexed fields like:

<input type="text" name="formItems[0].part" value="TK02">
<input type="text" name="formItems[0].price" value="13.0">
<input type="text" name="formItems[0].qty" value="1">

<input type="text" name="formItems[1].part" value="AG-1">
<input type="text" name="formItems[1].price" value="7.0">
<input type="text" name="formItems[1].qty" value="10">

In netscape/firefox, i can access the qtyOrdered value using:

document.forms['ShoppingCartForm'].elements['formItems[0].qty'].value

How do i access the qty field in Internet Explorer?

I tried this in FF2.0, IE6, IE7. All of them work.
The document is xHTML standard.

What version of IE are you getting problems with?
What error do you get?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.