jQuery : Disable and Enable Selected Options in DropDownList

To disable the selected option from select input element, following piece of code can be used,

and to enable an option that is disabled already,

In this example, let us have one div for each option of select element with the option text and a remove link which will be hidden by default. When a user selects an option, we will display the corresponding div for that option and disable the option in the select element. The user can again enable the option by clicking on the remove link.