![]() |
|
![]() | ||
|
Subject:
Javascript: referring to a page element that has brackets in its name
Category: Computers > Programming Asked by: placain-ga List Price: $4.00 |
Posted:
07 Apr 2003 15:24 PDT
Expires: 07 Apr 2003 15:28 PDT Question ID: 187346 |
I have a web page, written in PHP, where various form elements have names like NAME="date[month]" or NAME="date[year]", such that these get put into the array $date. On the page in question, I need to refer to those fields using javascript. If the name was something like NAME="month", I could refer to document.form.month.value, ... but it is apparently not possible to refer to document.form.date[month].value. Is there a way to refer to a form element that has brackets in its name? |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |