1<html>
2<head>
3<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
4<script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/js/standalone/selectize.min.js" integrity="sha256-+C0A5Ilqmu4QcSPxrlGpaZxJ04VjsRjKu+G82kl5UJk=" crossorigin="anonymous"></script>
5<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css" integrity="sha256-ze/OEYGcFbPRmvCnrSeKbRTtjG4vGLHXgOqsyLFTRjg=" crossorigin="anonymous" />
6</head>
7<body>
8 <select id="select-state" placeholder="Pick a state...">
9 <option value="">Select a state...</option>
10 <option value="AL">Alabama</option>
11 <option value="AK">Alaska</option>
12 <option value="AZ">Arizona</option>
13 <option value="AR">Arkansas</option>
14 <option value="CA">California</option>
15 <option value="CO">Colorado</option>
16 <option value="CT">Connecticut</option>
17 <option value="DE">Delaware</option>
18 <option value="DC">District of Columbia</option>
19 <option value="FL">Florida</option>
20 <option value="GA">Georgia</option>
21 <option value="HI">Hawaii</option>
22 <option value="ID">Idaho</option>
23 <option value="IL">Illinois</option>
24 <option value="IN">Indiana</option>
25 </select>
26</body>
27<script>
28 $(document).ready(function () {
29 $('select').selectize({
30 sortField: 'text'
31 });
32 });
33 </script>
34</html>