drop down box problem

Results 1 to 2 of 2

Thread: drop down box problem

  1. #1
    Join Date
    Dec 1969

    Default drop down box problem

    Hiya<BR><BR>Does anyone know if this is possible?<BR><BR>I have 4 drop down boxes in a form and basically they user is only allowed to select an option from one box the search on.<BR><BR>ie. box 1 - say the user selects the second option<BR>then they go to box 2 and select an option, I would then like box 1 to automatically reset to nothing? Is this possible? Its a bit like how radio buttons work, where you can only select one thing at a time but for drop downs.<BR><BR>Thanks alot, I really appreciate it.<BR><BR>Caroline

  2. #2
    Join Date
    Dec 1969

    Default RE: drop down box problem

    Sure, just write yourself a little function that gets passed the id of the current selectbox after an onChange event (each selectbox will need this function in their onChange method). In the function, loop through each selectbox, and if the id you passed it doesn&#039;t equal the current selectbox&#039;s id, change the selectbox&#039;s selectedIndex to 0.

Posting Permissions

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