-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
40 lines (34 loc) · 1.11 KB
/
demo.html
File metadata and controls
40 lines (34 loc) · 1.11 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
<html>
<head>
<title>jshuttle demo page</title>
<style type="text/css">
input{ margin: 0; }
table{ display: inline; }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jshuttle.js"></script>
</head>
<body>
<select id="left" multiple="multiple" size="7" style="width: 200px">
<option value="Guppy">Guppy</option>
<option value="Trout">Trout</option>
<option value="Shark">Shark</option>
</select>
<table>
<tr><td><input id="btnAddAll" type="button" value=">>" ></td></tr>
<tr><td><input id="btnAdd" type="button" value=">" ></td></tr>
<tr><td><input id="btnRemove" type="button" value="<" ></td></tr>
<tr><td><input id="btnRemoveAll" type="button" value="<<" ></td></tr>
</table>
<select id="right" multiple="multiple" size="7" style="width: 200px">
</select>
<script type="text/javascript">
$.jshuttle( "#left", "#right", {
add: "#btnAdd",
remove: "#btnRemove",
addAll: "#btnAddAll",
removeAll: "#btnRemoveAll" }
);
</script>
</body>
</html>