回答編集履歴

3

記事修正

2016/11/07 08:39

投稿

takepieee
takepieee

スコア686

test CHANGED
@@ -1,5 +1,3 @@
1
- disabledは「入力不可」なだけで送られます。
2
-
3
1
  あと比較演算は == または === などですよ。
4
2
 
5
3
 

2

ソース修正

2016/11/07 08:39

投稿

takepieee
takepieee

スコア686

test CHANGED
File without changes

1

ソース修正

2016/11/07 08:20

投稿

takepieee
takepieee

スコア686

test CHANGED
@@ -18,13 +18,17 @@
18
18
 
19
19
  $('input[type="text"]').on('input change blur', function() {
20
20
 
21
- var radio_template = '' +
21
+ if($(this).val != '') {
22
22
 
23
- '<input type="radio" name="radiobtn" id="A" checked/>A' +
23
+ var radio_template = '' +
24
24
 
25
- '<input type="radio" name="radiobtn" id="B"/>B';
25
+ '<input type="radio" name="radiobtn" id="A" checked/>A' +
26
26
 
27
+ '<input type="radio" name="radiobtn" id="B"/>B';
28
+
27
- $('radioarea').html(radio_template);
29
+ $('#radioarea').html(radio_template);
30
+
31
+ }
28
32
 
29
33
  });
30
34