Re: [PHP] Javascript array [] length is undefined when only single element

2004-02-17 Thread Adam Bregenzer
On Tue, 2004-02-17 at 20:21, Daevid Vincent wrote: > Okay kids. Here's another strange one. Very simple form. The array is > dynamically generated from PHP as per the suggested method: > http://us2.php.net/manual/en/faq.html.php#faq.html.arrays > > However, when there is only a single element, the

[PHP] Javascript array [] length is undefined when only single element

2004-02-17 Thread Daevid Vincent
Okay kids. Here's another strange one. Very simple form. The array is dynamically generated from PHP as per the suggested method: http://us2.php.net/manual/en/faq.html.php#faq.html.arrays However, when there is only a single element, the myMultiSelect.length is undefined in javascript. If there ar