回答編集履歴
1
参考リンク追記
test
CHANGED
@@ -29,3 +29,17 @@
|
|
29
29
|
document.getElementById('sub').addEventListener('click', e => document.getElementById('num').stepDown() );
|
30
30
|
|
31
31
|
```
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
---
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
参考:
|
42
|
+
|
43
|
+
> The method will not cause the value to go below the min value set or defy the constraints set by the step attribute.
|
44
|
+
|
45
|
+
[HTMLInputElement.stepDown() - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown)
|