adding onchange ONLY if function zzz exist

Discussion in 'Javascript' started by Mel, Apr 3, 2007.

  1. Mel

    Mel Guest

    I would like to add onChange to a select only if a javascript function
    zzz exist.

    can this be done ?

    example is highly appreciated
     
    Mel, Apr 3, 2007
    #1
    1. Advertising

  2. On Apr 3, 9:01 am, "Mel" <> wrote:
    > I would like to add onChange to a select only if a javascript function
    > zzz exist.
    >
    > can this be done ?
    >
    > example is highly appreciated


    if(window.zzz && /function/i.test(typeof(zzz))){
    // add onchange event to select element

    }
     
    scripts.contact, Apr 3, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Y.S.
    Replies:
    3
    Views:
    1,026
    strajan
    Sep 17, 2003
  2. Rick Mavrovik

    using Eval ("ZZZ")

    Rick Mavrovik, Jul 3, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    394
    Rick Mavrovik
    Jul 4, 2007
  3. abdulet
    Replies:
    2
    Views:
    542
    abdulet
    Oct 23, 2009
  4. Jake
    Replies:
    5
    Views:
    142
  5. bkaneweb

    Onchange function goes only once

    bkaneweb, Jun 14, 2007, in forum: Javascript
    Replies:
    1
    Views:
    66
    bkaneweb
    Jun 14, 2007
Loading...

Share This Page