-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (58 loc) · 1.85 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="/dist/main.min.css">
</head>
<body>
<div class="select-sagecoder">
<select
name="first"
class="pick-option"
placeholder="Select Fruits"
data-parent-width-active="false"
id="pick-option-1"
>
<option>Apple</option>
<option >Banana</option>
<option>Pineapple</option>
<option>Orange</option>
<option selected="selected">Cucumber</option>
<option>Carrot</option>
</select>
</div>
<div class="select-sagecoder">
<select
name="second[]"
class="pick-option"
data-parent-width-active="false"
id="pick-option-2"
multiple
>
<option>Pineapple</option>
<option>Orange</option>
<option>Cucumber</option>
<option selected="selected">Carrot</option>
<option selected="selected">Mango</option>
<option>Grape</option>
<option>Water melon</option>
</select>
</div>
<script src="./dist/main.min.js"></script>
<script>
new PickOption({
placeholder: "Select Item",
parentWidthActive: true
});
document.getElementById('pick-option-1').addEventListener('change', function(e){
console.log('Another Option Select 1 has been select', e)
});
document.getElementById('pick-option-2').addEventListener('change', function(e){
console.log('Another Option Select 2 has been select', e)
});
</script>
</body>
</html>