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 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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.