Results 1 to 2 of 2

Thread: Is there a way

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    49
    how can i see the value of a combobox in Javascript
    like i write this code and it doesn't worked.
    document.frmCart.Carts.options.value=x;
    alert(x);

    frmCart = Name of form
    Carts = Name of Select(ComboBox)

    Thanxs all

  2. #2
    Guest
    If you give your <OPTION> elements a VALUE attribute you can see the value with something like frmWhatever.selWhatever.value - for example:

    <P><SELECT NAME="selTest">
    <OPTION VALUE="Red">Red
    <OPTION VALUE="Blue">Blue
    <OPTION VALUE="Green">Green
    </SELECT></P>

    <P><BUTTON onClick="alert(selTest.value)">Click Me</BUTTON></P>

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width