Hierselect unique id for each select
| From: | Tony Marion | Date: | Thu, 01 Jun 2006 03:05:13 +0000 |
| Subject: | Hierselect unique id for each select | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24215@lists.php.net to get a copy of this message | ||
I have tried countless ways to get the value of my selects from within a
javascript function. The problem seems to be with the [0] and [1] brackets
after the name of the element. If I use the keyword (this) I am able to
pass the element information, but it doesn't help when I am invoking JS on
form load and not from onclick. I think the best solution would be to have
a unique id for each element, but it doesn't look like this is possible.
The other would be to get the correct syntax for retrieving the value of an
element that has the square brackets as part of the name. Has anyone else
run into these problems? If so please assist.
Thank you,
Tony