Re: Multiple Entry SELECT and JavaScript interaction

From: Date: Tue, 20 Nov 2001 18:08:02 +0000
Subject: Re: Multiple Entry SELECT and JavaScript interaction
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75265@lists.php.net to get a copy of this message
I almost forgot that... you can refer to the form element by the objects array, like this: document.form[0].elements[1].value "Sean Dougherty" <sean@penpower.com> escreveu na mensagem news:20011120161020.97009.qmail@pb1.pair.com... > I have a curious problem that I don't have a clue how to solve that's > probably simple but I can't find it documented anywhere. It might be the > first PHP-induced limitation I've run into... > > In order to allow multiple entry on a <SELECT> form object, the name of the > form has to end with the brackets [], but then when I do that I can't refer > to it from within JavaScript because as a variable name it becomes illegal. > I have to be able to refer to the SELECT object to change its contents based > on another form object. > > I've tried all kinds of things to work around this, but I'm stuck. Any ideas > out there? > > Thanks, > Sean > >

« previous php.general (#75265) next »