-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.html
More file actions
executable file
·31 lines (27 loc) · 942 Bytes
/
sample.html
File metadata and controls
executable file
·31 lines (27 loc) · 942 Bytes
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript" src="jasmine/jquery.js"></script>
<script type="text/javascript" src="jquery.neatList.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var $list = $("select").neatList();
$("button").click(function() {
$list.append("<option value='5' selected>Fifth</option>");
$list.neatList("refresh");
});
});
</script>
</head>
<body>
<select multiple="multiple">
<option value="1" selected>First</option>
<option value="2">Second</option>
<option value="3" selected>Third</option>
<option value="4">Fourth</option>
</select>
<button>Mess With Stuff</button>
</body>
</html>