SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict limepickle's Avatar
    Join Date
    Jan 2006
    Location
    Aldridge UK
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DropDown values based on other selection

    I am wondering if the following is possible in javascript. Well I'm sure it is, but I'm a little stuck on the correct way to do it.

    I have a dropdown to select a number of people from 1-6.

    Underneath it I have another dropdown that selects another number 1-6, however I do not want this dropdown to exceed the previous one, ie if I select 3 people with the top one, I only want to have a max of 3 options in the dropdown below.

    I know I'll have to set it using the onChange event, when the user changes the top dropdown, but can someone explain how I could set the max values of the dropdown below to suit? any pointers would be helpful here.

    Thank you

  2. #2
    SitePoint Addict limepickle's Avatar
    Join Date
    Jan 2006
    Location
    Aldridge UK
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (shameless bump)

  3. #3
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check this other topic, I think you are talking about the same thing ...

    http://www.sitepoint.com/forums/showthread.php?t=460378


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
  •