Jump to content

Bootstrap - Multi Select box


Craig Hopson

Recommended Posts

Hi guys, what i am looking for is 5 drop down boxes with 5 options.

When one option is selected it then cant be selected in the other 4 drop downs and so on until eventually all 5 drop downs will have one off the 5 options

 

i'm using bootstrap (hence posting in Javascript section), I'm shore there is a easy way to do this i just cant figure it out

 

Thanks all

 

Link to comment
Share on other sites

Oh, you just mean a select dropdown...

 

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select

 

I guess you would include a "none" value at the top of each list and just assign the onchange event to a function that would change the value back to "none" if it was a duplicate of another dropdown.

<select id="car"> <option value="none">None</option>  <option value="volvo">Volvo</option>  <option value="saab">Saab</option>  <option value="mercedes">Mercedes</option>  <option value="audi">Audi</option></select> 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...