Answers for "how to disable select option"

1

select first option deselect

<option selected="true" disabled="disabled">Choose Tagging</option>
Posted by: Guest on October-23-2020
1

html select option disabled selected

<option selected disabled>Choose Tagging</option>
Posted by: Guest on March-02-2021
0

chosen-select disable

$('#foobar').prop('disabled', true).trigger("chosen:updated");
Posted by: Guest on May-29-2020
0

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);
         }
      });
  });
Posted by: Guest on December-23-2020

Code answers related to "how to disable select option"

Browse Popular Code Answers by Language