MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/rms.cafsjobs.com/bk_rmsfiles/dist/select2/docs/_includes/examples/placeholders.html
<section>
  <h1 id="placeholders">Placeholders</h1>

  <p>
    A placeholder value can be defined and will be displayed until a
    selection is made. Select2 uses the <code>placeholder</code> attribute
    on multiple select boxes, which requires IE 10+. You can support it in
    older versions with
    <a href="https://github.com/jamesallardice/Placeholders.js">the Placeholders.js polyfill</a>.
  </p>

  <div class="s2-example">
    <p>
      <select class="js-example-placeholder-single js-states form-control">
        <option></option>
      </select>
    </p>
    <p>
      <select class="js-example-placeholder-multiple js-states form-control" multiple="multiple"></select>
    </p>
  </div>

  <pre data-fill-from=".js-code-placeholder"></pre>

<script type="text/javascript" class="js-code-placeholder">
$(".js-example-placeholder-single").select2({
  placeholder: "Select a state",
  allowClear: true
});

$(".js-example-placeholder-multiple").select2({
  placeholder: "Select a state"
});
</script>

</section>