質問編集履歴
1
インデントを入れました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,17 +26,17 @@
|
|
26
26
|
|
27
27
|
<p>
|
28
28
|
|
29
|
-
<input type="radio" class="demo1" name="demo1" id="demo1-1" autocomplete="off">
|
29
|
+
<input type="radio" class="demo1" name="demo1" id="demo1-1" autocomplete="off">
|
30
30
|
|
31
|
-
<label for="demo1-1">デモ1</label><br>
|
31
|
+
<label for="demo1-1">デモ1</label><br>
|
32
32
|
|
33
|
-
<input type="radio" class="demo1" name="demo1" id="demo1-2" autocomplete="off">
|
33
|
+
<input type="radio" class="demo1" name="demo1" id="demo1-2" autocomplete="off">
|
34
34
|
|
35
|
-
<label for="demo1-2">デモ2</label><br>
|
35
|
+
<label for="demo1-2">デモ2</label><br>
|
36
36
|
|
37
|
-
<input type="radio" class="demo1" name="demo1" id="demo1-3" autocomplete="off">
|
37
|
+
<input type="radio" class="demo1" name="demo1" id="demo1-3" autocomplete="off">
|
38
38
|
|
39
|
-
<label for="demo1-3">デモ3</label>
|
39
|
+
<label for="demo1-3">デモ3</label>
|
40
40
|
|
41
41
|
</p>
|
42
42
|
|
@@ -46,9 +46,9 @@
|
|
46
46
|
|
47
47
|
<p>
|
48
48
|
|
49
|
-
<input type="text" id="input1" autocomplete="off">
|
49
|
+
<input type="text" id="input1" autocomplete="off">
|
50
50
|
|
51
|
-
<input type="submit" id="submit1" value="送信">
|
51
|
+
<input type="submit" id="submit1" value="送信">
|
52
52
|
|
53
53
|
</p>
|
54
54
|
|
@@ -56,9 +56,9 @@
|
|
56
56
|
|
57
57
|
<p>
|
58
58
|
|
59
|
-
<textarea name="text2" id="text2" autocomplete="off"></textarea>
|
59
|
+
<textarea name="text2" id="text2" autocomplete="off"></textarea>
|
60
60
|
|
61
|
-
<input type="submit" id="submit2" value="送信">
|
61
|
+
<input type="submit" id="submit2" value="送信">
|
62
62
|
|
63
63
|
</p>
|
64
64
|
|
@@ -74,19 +74,19 @@
|
|
74
74
|
|
75
75
|
$(function(){
|
76
76
|
|
77
|
-
$(".demo1").click(function(){
|
77
|
+
$(".demo1").click(function(){
|
78
78
|
|
79
|
-
if(this.checked){
|
79
|
+
if(this.checked){
|
80
80
|
|
81
|
-
$("#link1").html("<a href='#'>送信</a>");
|
81
|
+
$("#link1").html("<a href='#'>送信</a>");
|
82
82
|
|
83
|
-
} else {
|
83
|
+
} else {
|
84
84
|
|
85
|
-
$("#link1").html("Next");
|
85
|
+
$("#link1").html("Next");
|
86
86
|
|
87
|
-
};
|
87
|
+
};
|
88
88
|
|
89
|
-
});
|
89
|
+
});
|
90
90
|
|
91
91
|
});
|
92
92
|
|
@@ -94,25 +94,25 @@
|
|
94
94
|
|
95
95
|
$(function(){
|
96
96
|
|
97
|
-
if ($("#input1").val().length == 0) {
|
97
|
+
if ($("#input1").val().length == 0) {
|
98
98
|
|
99
|
-
$("#submit1").prop("disabled", true);
|
99
|
+
$("#submit1").prop("disabled", true);
|
100
100
|
|
101
|
-
}
|
101
|
+
}
|
102
102
|
|
103
|
-
$("#input1").on("keydown keyup keypress change", function() {
|
103
|
+
$("#input1").on("keydown keyup keypress change", function() {
|
104
104
|
|
105
|
-
if ($(this).val().length < 2) {
|
105
|
+
if ($(this).val().length < 2) {
|
106
106
|
|
107
|
-
$("#submit1").prop("disabled", true);
|
107
|
+
$("#submit1").prop("disabled", true);
|
108
108
|
|
109
|
-
} else {
|
109
|
+
} else {
|
110
110
|
|
111
|
-
$("#submit1").prop("disabled", false);
|
111
|
+
$("#submit1").prop("disabled", false);
|
112
112
|
|
113
|
-
}
|
113
|
+
}
|
114
114
|
|
115
|
-
});
|
115
|
+
});
|
116
116
|
|
117
117
|
});
|
118
118
|
|
@@ -120,25 +120,25 @@
|
|
120
120
|
|
121
121
|
$(function(){
|
122
122
|
|
123
|
-
if ($("#text2").val().length == 0) {
|
123
|
+
if ($("#text2").val().length == 0) {
|
124
124
|
|
125
|
-
$("#submit2").prop("disabled", true);
|
125
|
+
$("#submit2").prop("disabled", true);
|
126
126
|
|
127
|
-
}
|
127
|
+
}
|
128
128
|
|
129
|
-
$("#text2").on("keydown keyup keypress change", function() {
|
129
|
+
$("#text2").on("keydown keyup keypress change", function() {
|
130
130
|
|
131
|
-
if ($(this).val().length < 5) {
|
131
|
+
if ($(this).val().length < 5) {
|
132
132
|
|
133
|
-
$("#submit2").prop("disabled", true);
|
133
|
+
$("#submit2").prop("disabled", true);
|
134
134
|
|
135
|
-
} else {
|
135
|
+
} else {
|
136
136
|
|
137
|
-
$("#submit2").prop("disabled", false);
|
137
|
+
$("#submit2").prop("disabled", false);
|
138
138
|
|
139
|
-
}
|
139
|
+
}
|
140
140
|
|
141
|
-
});
|
141
|
+
});
|
142
142
|
|
143
143
|
});
|
144
144
|
|