-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
71 lines (50 loc) · 1.52 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>jQuery Fancy Select Demo</title>
<link rel="stylesheet" type="text/css" href="src/jquery.fancyselect.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/perfectline/jquery_fancyselect/master/src/jquery.fancyselect.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('div.fancy_select').fancyselect({
onSelect : function (item) {
console.log(item);
}
});
});
</script>
</head>
<body>
<div class="container" style="width: 200px;">
<div class="fancy_select">
<div class="selected">
<div class="title"></div>
<div class="arrow">
<span></span>
</div>
</div>
<div class="wrapper">
<ul>
<li data-id="1" data-name="Banana">
<a href="javascript:void(0);">Banana</a>
</li>
<li data-id="2" data-name="Pineapple">
<a href="javascript:void(0);">Pineapple</a>
</li>
<li data-id="3" data-name="Strawberry">
<a href="javascript:void(0);">Strawberry</a>
</li>
<li data-id="4" data-name="Cherry">
<a href="javascript:void(0);">Cherry</a>
</li>
<li data-id="4" data-name="Grape">
<a href="javascript:void(0);">Grape</a>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>