-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (43 loc) · 1.15 KB
/
index.html
File metadata and controls
50 lines (43 loc) · 1.15 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
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Feedient SelectField example</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="selectField.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<link rel="stylesheet" href="selectField.min.css">
<style>
body {
font-family:sans-serif;
font-size:14px;
}
.box {
width:250px;
padding:20px;
}
#value {
margin-top:50px;
}
</style>
<script>
$(document).ready(function() {
$('#select-language').selectField();
$('#select-language').on('change', function(e, value) {
$('#value').html('You selected: ' + value);
});
});
</script>
</head>
<body>
<div class="box">
<a class="select" id="select-language">
<div class="option selected" data-value="en-GB">English (UK)</div>
<div class="option" data-value="en-US">English (US)</div>
<div class="option" data-value="nl-BE">Nederlands</div>
<div class="option" data-value="sv-SE">Svenska</div>
</a>
<div id="value"></div>
</div>
</body>
</html>