forked from select2/select2-bootstrap-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·54 lines (48 loc) · 1.47 KB
/
index.html
File metadata and controls
executable file
·54 lines (48 loc) · 1.47 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
51
52
53
54
---
layout: minimal
version: 4.0.0-rc.2
---
<div class="jumbotron">
<div class="container">
<div class="select2-wrapper">
<select class="form-control input-lg select2" dir="rtl">
<option></option>
{% include select2-select.html %}
</select>
</div>
<div class="select2-wrapper">
<select class="form-control select2" multiple="multiple">
<option></option>
{% include select2-select.html %}
</select>
</div>
<div class="select2-wrapper">
<div class="form-group">
<div class="input-group input-group-sm select2-bootstrap-prepend">
<span class="input-group-addon">
<input type="checkbox">
</span>
<select id="select2-single-input-group-sm" class="form-control select2" disabled>
<option></option>
{% include select2-select.html %}
</select>
</div>
</div>
</div>
<h1 class="jumbotron-title">Select2 Bootstrap Theme</h1>
<p class="lead">A <a href="https://select2.github.io/examples.html#themes">Select2 v4 theme</a> built with <a href="http://getbootstrap.com/">Bootstrap 3</a> variables and mixins.</p>
<a href="4.0.0.html" class="btn btn-outline btn-lg">Demonstrations</a>
</div>
</div>
{% include footer.html %}
{% include scripts.html %}
<script>
$( ".select2" ).select2( {
theme: "bootstrap",
placeholder: "Select a State",
maximumSelectionSize: 6
} );
$( ":checkbox" ).on( "click", function() {
$( this ).parent().nextAll( "select" ).prop( "disabled", !this.checked );
});
</script>