SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Feb 19, 2007, 05:35 #1
- 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 youLast edited by limepickle; Feb 20, 2007 at 03:06.
-
Feb 20, 2007, 03:10 #2
- Join Date
- Jan 2006
- Location
- Aldridge UK
- Posts
- 216
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
(shameless bump)
-
Feb 20, 2007, 03:41 #3
- 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