質問編集履歴
2
修正・追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<li><label for="age"><input type="radio" name="age" value="0">60代</label></li>
|
8
8
|
<li><label for="age"><input type="radio" name="age" value="0">70代</label></li>
|
9
9
|
</ul>
|
10
|
-
<input type="button" value="次へ" class="next" id="nextBtn">
|
10
|
+
<input type="button" value="次へ" class="next" id="nextBtn" disabled><!-- disabled追加しました -->
|
11
11
|
```
|
12
12
|
```javascript
|
13
13
|
$('input[name=age]').change(function() {
|
@@ -28,3 +28,5 @@
|
|
28
28
|
チェックされる前は#nextBtnをdisabledにし、
|
29
29
|
チェックされたら#nextBtnをdisabledを解除したいです。
|
30
30
|
|
31
|
+
上記のコードで実装してもdisabledが解除されません。
|
32
|
+
コードに問題があるでしょうか?
|
1
誤字
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
jQueryでdisabledをinputの内容に応じ
|
1
|
+
jQueryでdisabledをinputの内容に応じて解除したい
|
test
CHANGED
File without changes
|