forked from rabihkodeih/bootstrap-transfer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
42 lines (33 loc) · 899 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap Transfer Demo</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-transfer.css" rel="stylesheet">
</head>
<body>
<h1>Bootstrap Transfer Multiselect Demo</h1>
<div id="test" style="width:400px">
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap-transfer.js"></script>
<script>
$(function() {
var t = $('#test').bootstrapTransfer(
{'target_id': 'multi-select-input',
'height': '15em',
'hilite_selection': true});
t.populate([
{value:"1", content:"Apple"},
{value:"2", content:"Orange"},
{value:"3", content:"Banana"},
{value:"4", content:"Peach"},
{value:"5", content:"Grapes"}
]);
//t.set_values(["2", "4"]);
//console.log(t.get_values());
});
</script>
</body>
</html>