30
30
31
31
< div class ="row ">
32
32
< div class ="input-field col s12 m6 ">
33
- < select >
33
+ < select id =" select-test-1 " >
34
34
< option value ="" disabled selected > Choose your option</ option >
35
35
< option value ="1 "> Option 1</ option >
36
36
< option value ="2 "> Option 2</ option >
37
37
< option value ="3 "> Option 3</ option >
38
38
</ select >
39
- < label > Single-Select</ label >
39
+ < label for =" select-test-1 " > Single-Select</ label >
40
40
< div >
41
41
< button class ="btn1 "> Get Single-Select Values</ button >
42
42
</ div >
43
43
</ div >
44
44
< div class ="input-field col s12 m6 ">
45
- < select multiple >
45
+ < select id =" select-test-2 " multiple >
46
46
< option value ="" disabled > Choose your option</ option >
47
47
< option value ="1 "> Option 1</ option >
48
48
< option value ="2 "> Option 2</ option >
49
49
< option value ="3 "> Option 3</ option >
50
50
</ select >
51
- < label > Multi-Select</ label >
51
+ < label for =" select-test-2 " > Multi-Select</ label >
52
52
< div >
53
53
< button class ="btn2 "> Get Multi-Select Values</ button >
54
54
</ div >
55
55
</ div >
56
56
</ div >
57
57
58
58
< div class ="input-field col s12 ">
59
- < select >
59
+ < select id =" select-test-3 " >
60
60
< optgroup label ="team 1 ">
61
61
< option value ="1 "> Option 1</ option >
62
62
< option value ="2 "> Option 2</ option >
66
66
< option value ="4 "> Option 4</ option >
67
67
</ optgroup >
68
68
</ select >
69
- < label > Single-Select with Optgroups</ label >
69
+ < label for =" select-test-3 " > Single-Select with Optgroups</ label >
70
70
</ div >
71
71
72
72
< div class ="row ">
73
73
< h5 > Selects with Images</ h5 >
74
74
< div class ="input-field col s12 m6 ">
75
- < select class ="icons ">
75
+ < select id =" select-test-4 " class ="icons ">
76
76
< option value ="" disabled selected > Choose your option</ option >
77
77
< option value ="" data-icon ="../../docs/images/placeholder/250x250_a.png "> example 1</ option >
78
78
< option value ="" data-icon ="../../docs/images/placeholder/250x250_b.png "> example 2</ option >
79
79
< option value ="" data-icon ="../../docs/images/placeholder/250x250_c.png "> example 3</ option >
80
80
</ select >
81
- < label > Single-Select with Images (right)</ label >
81
+ < label for =" select-test-4 " > Single-Select with Images (right)</ label >
82
82
</ div >
83
83
< div class ="input-field col s12 m6 ">
84
- < select class ="icons ">
84
+ < select id =" select-test-5 " class ="icons ">
85
85
< option value ="" disabled selected > Choose your option</ option >
86
86
< option value ="" data-icon ="../../docs/images/placeholder/250x250_a.png " class ="left "> example 1</ option >
87
87
< option value ="" data-icon ="../../docs/images/placeholder/250x250_b.png " class ="left "> example 2</ option >
88
88
< option value ="" data-icon ="../../docs/images/placeholder/250x250_c.png " class ="left "> example 3</ option >
89
89
</ select >
90
- < label > Single-Select with Images (left)</ label >
90
+ < label for =" select-test-5 " > Single-Select with Images (left)</ label >
91
91
</ div >
92
92
</ div >
93
93
94
94
< div class ="row ">
95
95
< h5 > Select with selected Options</ h5 >
96
96
< div class ="input-field col s12 m6 ">
97
- < select >
97
+ < select id =" select-test-6 " >
98
98
< option value ="" disabled > Choose your option</ option >
99
99
< option value ="1 "> Option 1</ option >
100
100
< option value ="2 " selected > Option 2</ option >
101
101
< option value ="3 "> Option 3</ option >
102
102
</ select >
103
- < label > Single-Select with Value set</ label >
103
+ < label for =" select-test-6 " > Single-Select with Value set</ label >
104
104
</ div >
105
105
< div class ="input-field col s12 m6 ">
106
- < select multiple class ="icons ">
106
+ < select id =" select-test-7 " multiple class ="icons ">
107
107
< option value ="" disabled selected > Choose your option</ option >
108
108
< option value ="1 " selected data-icon ="../../docs/images/placeholder/250x250_a.png "> example 1</ option >
109
109
< option value ="2 " selected data-icon ="../../docs/images/placeholder/250x250_b.png "> example 2</ option >
@@ -112,35 +112,35 @@ <h5>Select with selected Options</h5>
112
112
< option value ="5 " data-icon ="../../docs/images/placeholder/250x250_e.png "> example 4</ option >
113
113
< option value ="6 "> example 5</ option >
114
114
</ select >
115
- < label > Multi-Select with Images (right) and Pre-Selections</ label >
115
+ < label for =" select-test-7 " > Multi-Select with Images (right) and Pre-Selections</ label >
116
116
</ div >
117
117
</ div >
118
118
119
119
< div class ="row ">
120
120
< h5 > Dynamically generated Select-Options < button class ="btn3 "> Create + Init Select</ button > </ h5 >
121
121
< div class ="input-field col s12 m6 ">
122
- < select class ="dynamic-select-single "> </ select >
123
- < label > Dynamic Single-Select</ label >
122
+ < select id =" select-test-8 " class ="dynamic-select-single "> </ select >
123
+ < label for =" select-test-8 " > Dynamic Single-Select</ label >
124
124
</ div >
125
125
< div class ="input-field col s12 m6 ">
126
- < select class ="dynamic-select-multi " multiple > </ select >
127
- < label > Dynamic Multi-Select</ label >
126
+ < select id =" select-test-9 " class ="dynamic-select-multi " multiple > </ select >
127
+ < label for =" select-test-9 " > Dynamic Multi-Select</ label >
128
128
</ div >
129
129
</ div >
130
130
131
131
< div class ="row ">
132
132
< div class ="col s12 m6 ">
133
- < label > Browser Single-Select</ label >
134
- < select class ="browser-default ">
133
+ < label for =" select-test-10 " > Browser Single-Select</ label >
134
+ < select id =" select-test-10 " class ="browser-default ">
135
135
< option value ="" disabled selected > Choose your option</ option >
136
136
< option value ="1 "> Option 1</ option >
137
137
< option value ="2 "> Option 2</ option >
138
138
< option value ="3 "> Option 3</ option >
139
139
</ select >
140
140
</ div >
141
141
< div class ="col s12 m6 ">
142
- < label > Browser Multi-Select</ label >
143
- < select class ="browser-default " multiple style ="height:150px; ">
142
+ < label for =" select-test-11 " > Browser Multi-Select</ label >
143
+ < select id =" select-test-11 " class ="browser-default " multiple style ="height:150px; ">
144
144
< option value ="" disabled selected > Choose your option</ option >
145
145
< option value ="1 "> Option 1</ option >
146
146
< option value ="2 "> Option 2</ option >
0 commit comments