-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (83 loc) · 3.38 KB
/
index.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/jquery.bootstrap-multiselect.css"/>
<script type="text/javascript" src="jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.bootstrap-multiselect.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#test-1').multiselect()
.on('bs.ms.select', function () {
console.log('selected');
})
.on('bs.ms.deselect', function () {
console.log('deselected');
});
$('#test-2').multiselect();
});
</script>
<title>jQuery Bootstrap Multi Select Demo</title>
</head>
<body>
<div class="container">
<hr/>
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Label</label>
<div class="col-sm-10">
<input type="text" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Label</label>
<div class="col-sm-10">
<select id="test-1" multiple="multiple">
<option>Select 1</option>
<option selected="selected">Select 2</option>
<option>Select 3</option>
<option>Select 4</option>
<option>Select 5</option>
<option selected="selected">Select 6</option>
<option selected="selected">Select 7</option>
<option>Select 8</option>
<option selected="selected">Select 9</option>
<option>Select 10</option>
<option>Select 11</option>
<option>Select 12</option>
<option>Select 13</option>
<option>Select 14</option>
<option>Select 15</option>
<option>Select 16</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Label</label>
<div class="col-sm-10">
<select id="test-2" multiple="multiple">
<option>Select 1</option>
<option selected="selected">Select 2</option>
<option>Select 3</option>
<option>Select 4</option>
<option>Select 5</option>
<option selected="selected">Select 6</option>
<option selected="selected">Select 7</option>
<option>Select 8</option>
<option selected="selected">Select 9</option>
<option>Select 10</option>
<option>Select 11</option>
<option>Select 12</option>
<option>Select 13</option>
<option>Select 14</option>
<option>Select 15</option>
<option>Select 16</option>
</select>
</div>
</div>
</form>
</div>
</body>
</html>