質問するログイン新規登録

質問編集履歴

2

修正

2019/08/06 02:52

投稿

WGAC
WGAC

スコア13

title CHANGED
File without changes
body CHANGED
@@ -47,18 +47,6 @@
47
47
  table {
48
48
  background-color: #FFFFFF
49
49
  }
50
-
51
- function connecttext(textid, ischecked) {
52
- if(ischecked==true) {
53
- // チェックが入っていたら有効化
54
- document.getElementById(textid).disabled=false;
55
- }
56
-
57
- else {
58
- // チェックが入っていなかったら無効化
59
- document.getElementById(textid).disabled=true;
60
- }
61
- }
62
50
  </style>
63
51
 
64
52
  <script>

1

修正

2019/08/06 02:51

投稿

WGAC
WGAC

スコア13

title CHANGED
File without changes
body CHANGED
@@ -77,7 +77,7 @@
77
77
  document.getElementById(textid).disabled = !ischecked;
78
78
  }
79
79
  window.onload = function() {
80
- document.getElementById("ショートカット率(単段or低段)その他").disabled = true;
80
+ document.getElementById("その他%").disabled = true;
81
81
  }
82
82
  </script>
83
83
  </head>
@@ -87,10 +87,10 @@
87
87
  <table border>
88
88
 
89
89
  <tr>
90
- <td align="left" valign="top" colspan="3"><input type="radio" name="ショートカット率(単段or低段)" class="radio" value="5%"><label>5%</label></td>
91
- <td align="left" valign="top"><input type="radio" name="ショートカット率(単段or低段)" class="radio" value="7%"><label>7%</label></td>
92
- <td align="left" valign="top"><input type="radio" name="ショートカット率(単段or低段)" class="radio" value="11%"><label>11%</label></td>
93
- <td align="left" valign="top" colspan="2"><input type="radio" name="ショートカット率(単段or低段)" class="radio" onclick="connecttext('ショートカット率(単段or低段)その他',this.checked);"><label>その他(<input type="text" name="othertext" id="ショートカット率(単段or低段)その他"
90
+ <td align="left" valign="top" colspan="3"><input type="radio" name="%" class="radio" value="5%"><label>5%</label></td>
91
+ <td align="left" valign="top"><input type="radio" name="%" class="radio" value="7%"><label>7%</label></td>
92
+ <td align="left" valign="top"><input type="radio" name="%" class="radio" value="11%"><label>11%</label></td>
93
+ <td align="left" valign="top" colspan="2"><input type="radio" name="%" class="radio" onclick="connecttext('その他%',this.checked);"><label>その他(<input type="text" name="othertext" id="その他%"
94
94
  value="">%)</label></td>
95
95
  </tr>
96
96