Want to set a value of a combox, using a string

Discussion in 'Javascript' started by SpiderFly, Sep 22, 2005.

  1. SpiderFly

    SpiderFly Guest

    I have a popup window where a user can select from a list of address
    records. When passing the details back to the calling screen i set all
    the address fields using code like this:

    Page.main.fldStreet.value = retStreet;
    Page.main.fldCity.value = retCity;

    but the problem i'm haveing is setting the selection of the combo box
    for country codes using the returned country code value. i know there
    is a setSelectedIndex but this doesn't help much. is there an
    equivelent .value = ?
     
    SpiderFly, Sep 22, 2005
    #1
    1. Advertising

  2. SpiderFly

    km0ti0n Guest

    km0ti0n, Sep 22, 2005
    #2
    1. Advertising

  3. SpiderFly

    SpiderFly Guest

    Silly server side html generator is making up it's own "option=" bits
    in the <select>.

    Silly me. sorted it now. thanks for the help.
     
    SpiderFly, Sep 22, 2005
    #3
    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. Replies:
    9
    Views:
    438
    Paul McGuire
    Sep 16, 2006
  2. Joao Silva
    Replies:
    4
    Views:
    85
    Stefan Rusterholz
    Dec 10, 2008
  3. Replies:
    4
    Views:
    181
    Ted Zlatanov
    Sep 13, 2006
  4. pavi
    Replies:
    0
    Views:
    1,395
  5. hygum
    Replies:
    4
    Views:
    119
    hygum
    Mar 6, 2007
Loading...

Share This Page