-
Notifications
You must be signed in to change notification settings - Fork 0
/
picker.html
33 lines (25 loc) · 834 Bytes
/
picker.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
<html>
<head>
<title>Picker Example</title>
<script src="js/jquery-1.6.1.min.js" type="text/javascript"> </script>
<script src="js/picker.js" type="text/javascript"> </script>
<link type="text/css" href="css/picker.css" rel="stylesheet" />
<link type="text/css" href="css/ui-darkness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function() {
// var x = $("#pickerDataSource").find('li');
// var y = x.length;
$("#pickerDataSource").picker({selectedItems: [1,2]});
});
</script>
</head>
<body>
<div id="picker">
<ul id="pickerDataSource">
<li value="1">Item 1</li>
<li value="2">Item 2</li>
<li value="3">Item 3</li>
</ul>
</div>
</body>
</html>