how to disable select option code example

Example 1: select first option deselect

<option selected="true" disabled="disabled">Choose Tagging</option>

Example 2: html non selectable option

<option disabled selected value> -- select an option -- </option>

Example 3: html select option disabled selected

<option selected disabled>Choose Tagging</option>

Example 4: chosen-select disable

$('#foobar').prop('disabled', true).trigger("chosen:updated");

Example 5: disable other options in select except the selected

$("#lbCountries").click(function () {
     $("#lbCountires option").each(function (index) {
        if ($(this).is(':selected')) {
            $(this).prop('disabled', false);
         }
         else {
            $(this).prop('disabled', true);
         }
      });
  });