Search code examples
jqueryselectcloneselecteditem

jQuery, Clone select, disable previously selected options


I'm working on this website where users can create their own bundles. Basically they have a list of courses and they can pick 5 and create a bundle.

The approach I'm taking is a dropdown list of all courses that then gets cloned on click.

What I'd like to do is disable any previously selected items on the next cloned list.

Is this possible?

Here's my code: http://jsfiddle.net/Y4fLM/

Thanks a lot!


Solution

  • You can try this one as well

    http://jsfiddle.net/Y4fLM/3/

    As with your question it seems may be this could be helpful for you.