回答編集履歴

1

参考リンク追記

2021/01/13 15:26

投稿

Lhankor_Mhy
Lhankor_Mhy

スコア36074

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)