Set a combobox value with js

Discussion in 'Javascript' started by John M, Oct 19, 2003.

  1. John M

    John M Guest

    How is it possible to change a select box value with Javascript?
     
    John M, Oct 19, 2003
    #1
    1. Advertising

  2. "John M" <> schreef in bericht
    news:20ykb.23632$...
    > How is it possible to change a select box value with Javascript?
    >
    >


    Yeah, with:

    document.forms['formNameOrIndex'].elements['selectNameOrElementIndex'].optio
    ns[index].value
    = newValue;


    JW
     
    Janwillem Borleffs, Oct 19, 2003
    #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. Vaidas Gudas

    null value in combobox

    Vaidas Gudas, Mar 15, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,165
    Anthony Merante
    Mar 15, 2006
  2. Mullin
    Replies:
    0
    Views:
    8,929
    Mullin
    Mar 8, 2005
  3. 2ontheway
    Replies:
    1
    Views:
    6,748
  4. Jl_G_0

    ComboBox Text and Value

    Jl_G_0, Oct 21, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    406
    Siva M
    Oct 21, 2006
  5. Replies:
    5
    Views:
    489
    Roedy Green
    Oct 11, 2012
Loading...

Share This Page