Dropbox query

jayk

New Member
I have three drop boxes all with the same info in list. But i want to make it that if you choose one of the option in the one drop box you can't select the same option in another. Any advice? Thank you
 

chrishirst

Well-Known Member
Staff member
Okay, I'll assume you only answered the first if the two question, based on the second being more improbable of being correct.

But what you need to do is;

when any select box is changed, you trigger a function that disables the others. I might write some example code for that later on.

However:
A much simpler way and the one I would choose to use as it avoids the unnecessary reliance of javascript, is to use a single select element with <optgroup> elements separating the mutually exclusive choices. This may of course require some layout changes but given that this IS the "Web Design" section of the forum it seems to be an eminently more suitable solution.
 

chrishirst

Well-Known Member
Staff member
Oops, just found out that there is no "edit post" function so I cannot correct my typo of 'if' to 'of'
 

jayk

New Member
Thank you yet again chrishirst. Really appreciate the guidance. Will study up on it.
<optgroup> thank you
 
Top