471,078 Members | 888 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,078 software developers and data experts.

Select.lenght problem

Hi all,

I have a problem (a simple but incredible problem !). On a form, I have a
Select element which is mulitple.
I tried to get the number of options of this Select but it always return
"undefined".

So I tried :

document.forms[0].mySelect.lenght = undefined
document.forms[0].mySelect.options.lenght = undefined

If I try to get anything else, I get the correct information, but I
can't get the lenght property !!

An idea ?

Thx

//--------------------------------------------------
Kevin Auch
MVP .NET
CodeWise Community Member
http://www.dotnet-fr.org
----------------------------------------------------//
Jul 23 '05 #1
2 3370
On Tue, 18 May 2004 14:22:01 +0200, Kevin Auch wrote:
So I tried :

document.forms[0].mySelect.lenght = undefined
document.forms[0].mySelect.options.lenght = undefined


Ahem. It's "length", not "lenght". :)

--
C'ya,
ZER0 :: coder.gfxer.webDesigner();

Come devo regolare la stampante laser per stordire?
(How do I set a laser printer to stun?)

Now playing: nothing
Jul 23 '05 #2
Yeah,

I saw it....

Lol
//--------------------------------------------------
Kevin Auch
MVP .NET
CodeWise Community Member
http://www.dotnet-fr.org
----------------------------------------------------//
"ZER0" <ze********@libero.it> a écrit dans le message de
news:1m***************@ID-171124.news.individual.net...
On Tue, 18 May 2004 14:22:01 +0200, Kevin Auch wrote:
So I tried :

document.forms[0].mySelect.lenght = undefined
document.forms[0].mySelect.options.lenght = undefined


Ahem. It's "length", not "lenght". :)

--
C'ya,
ZER0 :: coder.gfxer.webDesigner();

Come devo regolare la stampante laser per stordire?
(How do I set a laser printer to stun?)

Now playing: nothing

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

300 posts views Thread by Ståle Sæbøe | last post: by
1 post views Thread by svet | last post: by
1 post views Thread by TomislaW | last post: by
9 posts views Thread by Andrey Koptyaev | last post: by
2 posts views Thread by pastir | last post: by
4 posts views Thread by javaalien | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.