cdn

Tom Select

Released Installed

Lightweight, framework-agnostic select / autocomplete (no jQuery).

How to include

This demo uses the Bootstrap 5 theme. Swap the CSS for tom-select.default.min.css (or tom-select.bootstrap4.min.css) if you are not on Bootstrap 5.

<link rel="stylesheet" href="https://cdn.roste.org/tom-select/latest/css/tom-select.bootstrap5.min.css" />
<script src="https://cdn.roste.org/tom-select/latest/js/tom-select.complete.min.js"></script>
<script>
  new TomSelect("#my-select", {});
</script>

Download zip


Single select

<link rel="stylesheet" href="latest/css/tom-select.bootstrap5.min.css" />
<script src="latest/js/tom-select.complete.min.js"></script>
<select id="country">…</select>
<script>
  new TomSelect("#country", { create: false });
</script>

Multi-select with tags

<select id="langs" multiple>…</select>
<script>
  new TomSelect("#langs", {
    plugins: ["remove_button"],
    maxItems: null
  });
</script>