Jump to content

Bootstrap - Multi Select box


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...