RE: [PHP] php and javascript
| From: | Richard Lynch | Date: | Mon, 11 Apr 2005 23:51:04 +0000 |
| Subject: | RE: [PHP] php and javascript | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212867@lists.php.net to get a copy of this message | ||
On Mon, April 11, 2005 4:23 pm, Jared Williams said:
> Hmm, document.forms['Selection'].elements['distID[]'][0].value is
> perfectly valid, and should work in any decent browser.
>
> There is also document.getElementsByName()
Didja try it?
Cuz every time *I* ever tried it (back in Browser Wars 3.0/4.0 days, mind
you) the JavaScript would see the [] as an array reference and *NOT* as
part of the name.
Didn't matter what I did to try to convince it otherwise.
YMMV
--
Like Music?
http://l-i-e.com/artists.htm