# Disabling options (ok)

```
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" />
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.min.js"></script>
</head>

<body>
  <select class="js-example-disabled-results">
    <option value="one">First</option>
    <option value="two" disabled="disabled">Second (disabled)</option>
    <option value="three">Third</option>
  </select>
  <script>
  $(document).ready(function() {
    var $disabledResults = $(".js-example-disabled-results");
    $disabledResults.select2();
  });
  </script>
</body>

</html>
```

![](https://2494213435-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYjAG13rAPdbArSfRyB%2F-M7gCywAG9TKw0wwWVQy%2F-M7gDdugH7NblEkyK2gn%2F4.png?alt=media\&token=9955100d-705a-4542-9afb-bc31b381fd25)

