www.webdeveloper.com
Results 1 to 3 of 3

Thread: Three Combo Boxes: Remove Options that have been selected in others

  1. #1
    Join Date
    Jul 2010
    Posts
    2

    Talking Three Combo Boxes: Remove Options that have been selected in others

    I am looking to create a set of three combo boxes with around 15 options in each. If an option is selected in one of the three boxes, it is removed as an option from the others.

    Dropbox Box 1 Options: 1,2,3,...,15
    Dropbox Box 2 Options: 1,2,3,...,15
    Dropbox Box 3 Options: 1,2,3,...,15

    User selects option 1 from Box 1:

    Dropbox Box 1 Options: 1,2,3,...,15 -> Selected 1
    Dropbox Box 2 Options: 2,3,4,...,15
    Dropbox Box 3 Options: 2,3,4,...,15

    User selects option 2 from Box 2:

    Dropbox Box 1 Options: 1,3,4,...,15 -> Selected 1
    Dropbox Box 2 Options: 2,3,4,...,15 -> Selected 2
    Dropbox Box 3 Options: 3,4,5,...,15

    That would be great, and to make it perfect, add on this option.

    User changes Box 1 to select option 3:

    Dropbox Box 1 Options: 1,3,4,...,15 -> Selected 3
    Dropbox Box 2 Options: 1,2,4,...,15 -> Selected 2
    Dropbox Box 3 Options: 1,4,5,...,15

    So if the user changes there mind before submit, it repopulates each box with the proper items.

    Cheers

  2. #2
    Join Date
    Jun 2007
    Posts
    667
    Quote Originally Posted by Celcius View Post
    I am looking to create a set of three combo boxes with around 15 options in each. If an option is selected in one of the three boxes, it is removed as an option from the others.
    http://scripterlative.com/files/selectunique.htm

  3. #3
    Join Date
    Jul 2010
    Posts
    2

    Brilliant

    Brilliant, thank you very much. Works exactly as needed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles