質問編集履歴
1
htmlを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,30 @@
|
|
15
15
|
### 該当のソースコード
|
16
16
|
|
17
17
|
```ここに言語名を入力
|
18
|
+
//html
|
19
|
+
//現在こちらのselectを変更した時のみeventが発生
|
20
|
+
<variant-selects class="no-js-hidden" data-section="template--16558929641692__main" data-url="/products/5pack"><div class="product-form__input product-form__input--dropdown">
|
21
|
+
<label class="form__label" for="Option-template--16558929641692__main-0">
|
22
|
+
味
|
23
|
+
</label>
|
24
|
+
<div class="select">
|
25
|
+
<select id="Option-template--16558929641692__main-0" class="select__select" name="options[味]" form="product-form-template--16558929641692__main">
|
26
|
+
<option value="aaa" selected="selected">
|
27
|
+
aaa
|
28
|
+
</option>
|
29
|
+
|
30
|
+
</select>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
</variant-selects>
|
36
|
+
|
37
|
+
//こちらをクリックしたときにも同じものを発動させたい
|
38
|
+
<button id="variant_choose">button</button>
|
39
|
+
|
40
|
+
|
41
|
+
|
18
42
|
class VariantSelects extends HTMLElement {
|
19
43
|
constructor() {
|
20
44
|
super();
|