# placeholder (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-basic-single" name="state">
    <option value="">--Select--</option>
    <option value="AL">Alabama</option>
    <option value="WY">Wyoming</option>
  </select>
  <script>
    $(document).ready(function() {
      $('.js-example-basic-single').select2(
        {
          placeholder: "Select a state"
        }
      );
    });
  </script>
</body>

</html>
```

![](https://2494213435-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYjAG13rAPdbArSfRyB%2F-M7gDfG1gbQCMWqBs_LR%2F-M7gFk6P2fO1Ort2CxBj%2F5.png?alt=media\&token=ea789bfc-96f0-4ab1-85b0-573897d026e1)

