Google Answers Logo
View Question
 
Q: Javascript: referring to a page element that has brackets in its name ( No Answer,   0 Comments )
Question  
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?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy