mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-18 13:36:35 +02:00
46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Choices</title>
|
|
<link rel="stylesheet" href="assets/styles/css/choices.css">
|
|
</head>
|
|
<body>
|
|
<label for="1">Text input with no values and a limit of 5 items</label>
|
|
<input id="1" type="text" data-choice>
|
|
|
|
<label for="2">Text input with preset values, custom classes and a placeholder. No duplicate values allowed</label>
|
|
<input id="2" type="text" data-choice value="preset-1, preset-2" placeholder="This is a placeholder" class="custom class">
|
|
|
|
<label for="3">Select input with two options</label>
|
|
<select id="3" name="3" data-choice>
|
|
<option value="Value 1">Value 1</option>
|
|
<option value="Value 2">Value 2</option>
|
|
<option value="Value 3">Value 3</option>
|
|
<option value="Value 4">Value 4</option>
|
|
<option value="Value 5">Value 5</option>
|
|
<option value="Value 6">Value 6</option>
|
|
</select>
|
|
|
|
<select id="4" name="4" data-choice>
|
|
<optgroup label="Group 1">
|
|
<option value="Value 1">Value 1</option>
|
|
<option value="Value 2">Value 2</option>
|
|
<option value="Value 3">Value 3</option>
|
|
</optgroup>
|
|
<optgroup label="Group 2">
|
|
<option value="Value 4">Value 4</option>
|
|
<option value="Value 5">Value 5</option>
|
|
<option value="Value 6">Value 6</option>
|
|
</optgroup>
|
|
</select>
|
|
|
|
<!-- <label for="4">Multiple select input with two options</label>
|
|
<select id="4" name="4" data-choice multiple>
|
|
<option value="Value 1">Value 1</option>
|
|
<option value="Value 2">Value 2</option>
|
|
</select>
|
|
-->
|
|
<script src="assets/scripts/dist/bundle.js"></script>
|
|
</body>
|
|
</html> |