回答編集履歴
2
追記
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
`試したもの1`で可能かと思いますが...
|
1
|
+
`試したもの1`で可能かと思いますが...一度以下のようにして試していただけませんか?
|
2
2
|
|
3
3
|
```HTML
|
4
4
|
|
1
追記
test
CHANGED
@@ -1,3 +1,49 @@
|
|
1
1
|
`試したもの1`で可能かと思いますが...
|
2
2
|
|
3
3
|
```HTML
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
|
7
|
+
<html lang="ja">
|
8
|
+
|
9
|
+
<head>
|
10
|
+
|
11
|
+
<meta charset="UTF-8">
|
12
|
+
|
13
|
+
<title>タイトル</title>
|
14
|
+
|
15
|
+
</head>
|
16
|
+
|
17
|
+
<body>
|
18
|
+
|
19
|
+
<div class="label-txt"><!-- 文法的にNG -->
|
20
|
+
|
21
|
+
<div class="radio">
|
22
|
+
|
23
|
+
<input id="1" name="select" class="radio__input" type="radio" value="0"/>
|
24
|
+
|
25
|
+
<label for="1" class="checkbox"><span class="image"></span>選択肢1</label>
|
26
|
+
|
27
|
+
<input id="2" name="select" class="radio__input" type="radio" value="1"/>
|
28
|
+
|
29
|
+
<label for="2" class="checkbox"><span class="image"></span>選択肢2</label>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<script>
|
36
|
+
|
37
|
+
document.addEventListener("DOMContentLoaded", function () {
|
38
|
+
|
39
|
+
document.getElementById("1").checked = true;
|
40
|
+
|
41
|
+
});
|
42
|
+
|
43
|
+
</script>
|
44
|
+
|
45
|
+
</body>
|
46
|
+
|
47
|
+
</html>
|
48
|
+
|
49
|
+
```
|