1
How to disable all options
of a combo minus the selected value using Jquery.
As in the image below:
Follow the HTML in the image:
HTML
<!DOCTYPE html>
<html>
<body>
<select>
<option disabled value="volvo">Volvo</option>
<option disabled value="saab">Saab</option>
<option selected value="opel">Opel</option>
<option disabled value="audi">Audi</option>
</select>
</body>
</html>
Very good... :) +1
– Rafael Withoeft
Much simpler than my +1 answer.
– Diego Zanardo
Very interesting, worth the tip!
– Jothaz