DropDownList value from VBScript

Discussion in 'ASP .Net Web Controls' started by carlor, Aug 30, 2005.

  1. carlor

    carlor Guest

    Hi there,

    I'm implementing a CustomValidator and for the client side validation I'm
    using VBScript (which I'm not too familiar with). I have an example of
    getting the value of a text box from within the script (see below) but I
    can't figure out how to do it for a drop down list.

    eg.
    document.getElementById("<%=txtGenericClaim.clientid%>").value

    How do I go about getting the SelectedValue from a dropdownlist using this
    method?


    Thank you very much,

    Carlo.
     
    carlor, Aug 30, 2005
    #1
    1. Advertisements

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. keys4worship
    Replies:
    0
    Views:
    954
    keys4worship
    Jun 28, 2005
  2. mr2_93
    Replies:
    1
    Views:
    3,889
    mr2_93
    Oct 2, 2005
  3. tshad
    Replies:
    8
    Views:
    2,466
    tshad
    Oct 19, 2005
  4. =?Utf-8?B?SnVhbmpv?=

    GridView: Filtr DropDownList from another DropDownList

    =?Utf-8?B?SnVhbmpv?=, Dec 23, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    2,046
    =?Utf-8?B?SnVhbmpv?=
    Dec 23, 2005
  5. Phil Di Guillielmo
    Replies:
    6
    Views:
    8,999
    Aaron J. Scott
    Aug 27, 2003
  6. Matt
    Replies:
    2
    Views:
    1,174
    Anthony Judd
    Sep 25, 2004
  7. Replies:
    7
    Views:
    387
  8. thisis
    Replies:
    0
    Views:
    207
    thisis
    Oct 17, 2006
Loading...