From: "Ben Cheng" <[EMAIL PROTECTED]>
Sent: Sunday, March 11, 2001 3:27 PM


> Yeah I saw this in the online manual but is there any other way of 
> doing this that doesn't require naming the select box in HTML with a 
> [] at the end?  Cause I have another button that calls a JavaScript 
> to select all the options within CategoryID[] and it doesn't seem to 
> work cause it's looking for a CategoryID[] array instead of a select 
> box named CategoryID[].

You solve that one by referencing your selectbox in JavaScript like this:

document.myForm["CategoryID[]"].selectedIndex

instead of

document.myForm.CategoryID.selectedIndex

- Carsten



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to