-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselect2.html
More file actions
46 lines (46 loc) · 974 Bytes
/
select2.html
File metadata and controls
46 lines (46 loc) · 974 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<meta charset="utf-8" />
<script src="https://unpkg.com/vue@next"></script>
<style>
div#app {
margin: 20px auto;
padding: 20px;
width: 300px;
border: 1px solid gray;
box-shadow: 5px 5px 5px #aaa;
}
p {
font-size: 15pt;
color: blue;
}
select {
padding: 5px;
font-size: 15pt;
width: 150px;
}
</style>
</head>
<body>
<div id="app">
<h1>select</h1>
<p>{{ choice }}</p>
<hr />
<input type="text" v-model="choice" />
<select v-model="choice">
<option>yellow</option>
<option>green</option>
<option>blue</option>
<option>red</option>
</select>
</div>
<script type="text/javascript">
let app = {
data() {
return { choice: "yellow" };
},
};
Vue.createApp(app).mount("#app");
</script>
</body>
</html>