Select.lenght problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin Auch

    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.lengh t = undefined
    document.forms[0].mySelect.optio ns.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

    ----------------------------------------------------//


  • ZER0

    #2
    Re: Select.lenght problem

    On Tue, 18 May 2004 14:22:01 +0200, Kevin Auch wrote:
    [color=blue]
    > So I tried :
    >
    > document.forms[0].mySelect.lengh t = undefined
    > document.forms[0].mySelect.optio ns.lenght = undefined[/color]

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

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

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

    Now playing: nothing

    Comment

    • Kevin Auch

      #3
      Re: Select.lenght problem

      Yeah,

      I saw it....

      Lol


      //--------------------------------------------------
      Kevin Auch
      MVP .NET
      CodeWise Community Member

      ----------------------------------------------------//
      "ZER0" <zer0.shock@lib ero.it> a écrit dans le message de
      news:1m9dfbvc7w ip1.dlg@ID-171124.news.ind ividual.net...[color=blue]
      > On Tue, 18 May 2004 14:22:01 +0200, Kevin Auch wrote:
      >[color=green]
      > > So I tried :
      > >
      > > document.forms[0].mySelect.lengh t = undefined
      > > document.forms[0].mySelect.optio ns.lenght = undefined[/color]
      >
      > Ahem. It's "length", not "lenght". :)
      >
      > --
      > C'ya,
      > ZER0 :: coder.gfxer.web Designer();
      >
      > Come devo regolare la stampante laser per stordire?
      > (How do I set a laser printer to stun?)
      >
      > Now playing: nothing[/color]


      Comment

      Working...