Ian, thanks for your reply. OK, here is the scenario. The 11 drop down boxes each represent a playing position within a football (soccer) team. The idea is that the same player cannot be in more than 1 position at any one time. So, each drop down has to have the same list of team players and when 1 is selected in a position he can no longer be available for selection in any other position. Does that make it clearer?
-----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: 06 December 2005 19:12 To: Javascript Subject: RE: Controlling the population of drop-downs Hi all, I have a cfm page that has 11 select boxes on it. These select boxes will be populated with the same recordset. What I need to be able to do is once an option has been chosen in 1 select box then all of the other select boxes are updated to exclude what was selected so that the same thing cannot be selected twice. Is it at all possible to do this without having to resort to a post back? Is there some javascript magic that can handle this? First question is, why do you have 11 drop down lists with the same record set in it? To answer your question, yes JavaScript could be used to remove selected values from other boxes, but depending on the answer to the first question, it may not be necessary. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase RoboHelp from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=59 Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2084 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
