title: How to add disable selected option in select2 dropdown?
body: <p><strong>Description:</strong> </p>
  
  <p>I'm using Select2 for dropdown, and i'm trying to disable selected option in list. I wrote the code given bellow but it is not working. Is there any mistake in this code?</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>$("#Users").change(function () {
              $(".select2-results .select2-results__option[aria-selected=true]").each(function () {
                  $(this).attr("disabled","disabled");
              });
          });
  </code></pre>
  
  <p><strong>Html:</strong> </p>
  
  <pre><code>&lt;div class="form-group"&gt;
              @Html.Label("Send Mail To", new { @class = "control-label", @style= "position: absolute;margin-top:18px;" })
              &lt;a id="clearSelectedUsers" class="pull-right btn btn-primary M-B10"&gt;Clear&lt;/a&gt;
              @Html.DropDownListFor(m =&gt; m.Users, new SelectList(Model.Users, "Email", "Name"), "Select", new { multiple = "multiple", @class = "form-control" ,@disabled = "disabled" })
          &lt;/div&gt;
  </code></pre>
  
  <p><strong>Script:</strong></p>
  
  <p>var usersSelect2 = $("#Users").select2();
   usersSelect2.val(toBeSelectedManagers).trigger("change");</p>