Need to disable already selected options in select box using jQuery. I\'d like it to grey out like asmselect.
Test my example here.
//JS
$(\"#theSele
Add this line to your change event handler
$("#theSelect option:selected").attr('disabled','disabled')
.siblings().removeAttr('disabled');
This will disable the selected option, and enable any previously disabled options.
EDIT:
If you did not want to re-enable the previous ones, just remove this part of the line:
.siblings().removeAttr('disabled');
EDIT:
http://jsfiddle.net/pd5Nk/1/
To re-enable when you click remove, add this to your click handler.
$("#theSelect option[value=" + value + "]").removeAttr('disabled');