Re: Multiple selections

From: Date: Wed, 13 Nov 2002 14:43:15 +0000
Subject: Re: Multiple selections
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124237@lists.php.net to get a copy of this message
Thanks Mike and Ernest for the info on how to handle the "var[]" Multiple Select name more sensibly in JavaScript.
Not even a workaround. By definition, in JavaScript x.y is identical to x['y'], so where for a simple field you might write:
          document.formname.myvar.value
for a field named "myvar[]" you can write:
          document.formname['myvar[]'].value
Cheers- David

« previous php.general (#124237) next »