-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (41 loc) · 2.07 KB
/
index.html
File metadata and controls
50 lines (41 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="en">
<head>
<title>MultiSelect Demo</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<link rel="stylesheet" href="/ms.css">
</head>
<body>
<div class="container py-5">
<header class="mb-4">
<h1 class="mt-5">Multi Select Demo </h1>
<p class="text-muted mb-0">A multi-select dropdown with typeahead search in vanilla JS.</p>
</header>
<div class="demo-card card shadow-sm">
<div class="card-body">
<label for="typeaheadInput" class="visually-hidden">Search for people</label>
<div class="p-2 typeahead-container">
<div id="typeaheadDemo" class="multi-typeahead">
<div id="chipsContainer" class="selected-chips"></div>
<input type="text" id="typeaheadInput" autocomplete="off" placeholder="Type to search...">
<ul id="suggestionsList" class="suggestions"></ul>
</div>
<div class="text-end">
<button id="saveBtn" class="btn btn-primary">Save Selected Names</button>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous">
</script>
<script src="/ms.js"></script>
</body>
</html>