SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to set values on a form drop-down list?

    I want to programmatically change the selection of a drop-down list based on the user selection of another drop-down list. For example, say my form has a section for vehicle selection consisting of two drop-down lists-- one for cars and one for trucks. The user may select from one of these two lists. The behavior I'm looking for is if the user selects a truck, any previous selection in the cars list will be changed to blank.

    How do I accomplish this?

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    That's done with JavaScript. We havea thread explaining that. Let me see if I can find it for you.

  3. #3
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)


Bookmarks

Posting Permissions

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