473,511 Members | 15,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3456
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

300
18063
by: Ståle Sæbøe | last post by:
I am a bit curious about this. The graphic design people I work with say it is their preferred font for web pages. The reason being that it is "kinder" to the eye both in terms of shape and...
0
5477
by: Jean-Michel POURE | last post by:
Dear friends, I studying the possibility to port Compiere CRM from Oracle to PostgreSQL. As Compiere evolves nearly everyday in CVS, I would like to run the Oracle code without (too much)...
1
2289
by: svet | last post by:
Hello, I need to import data into integer field in Access but would like to trim the lenght of the field to 4 char. long instead of the default six char. long. This is important, because on...
1
1311
by: TomislaW | last post by:
How to get Lenght of DataSource in HTML of Repeater Like: <%# DataBinder.Eval(Container.Lenght) %> ???
0
1488
by: Eric | last post by:
Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database...
9
1780
by: Andrey Koptyaev | last post by:
What does it mean "fieldRequired.lenght" in php 4.1 ? I know "fieldRequired->lenght" but don't know "fieldRequired.lenght" Please help to understand. Thank you!
0
1164
by: Fareast Adam | last post by:
Hi all, anybody know how to create dynamic array random password (lenght and no of password)? The program request an user to insert no of password AND lenght of password to be generate. After that,...
2
2180
by: pastir | last post by:
I have to read input from the keyboard and save it as a string (but in C strings are acctually character arrays or something?) that I am going to manipulate later. That wouldn`t be a problem except...
4
3165
by: javaalien | last post by:
Could someone please help me how to count lenght string in a file? I have input file like this: 1039387845 35368535615253 695 .... Kindly pls assist me how to count the lenght. Thank you in...
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.