Hi all. I have a field in a form called cart_quantity that looks like this:
Code:
<input type="hidden" name="id[txt_3]" value="Justin">
after the </form> I am trying to just display an alert with the value of the hidden field like this:
Code:
alert(document.forms["cart_quantity"].id[txt_3].value);
This is not working. I'm thinking it's because of the []'s and javascript thinking I'm talking about an array. I have tried this:
Code:
alert(document.forms["cart_quantity"].id\[txt_3\].value);
to no avail. Anyone have any suggestions what to try next? I'm customizing osCommerce so I need to keep the []'s in there.
Thanks!
Justin