回答編集履歴
1
書式の改善
test
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
var url = location.protocol + "//" + location.host + location.pathname + location.search;
|
12
|
+
|
11
|
-
var params = l
|
13
|
+
var params = url.split('?');
|
12
14
|
|
13
15
|
var paramms = params.length>1&¶ms[1].split('&');
|
14
16
|
|
@@ -22,23 +24,25 @@
|
|
22
24
|
|
23
25
|
paramArray[vl[0]] = vl[1];
|
24
26
|
|
27
|
+
|
28
|
+
|
29
|
+
var terms = decodeURIComponent(vl[1]);
|
30
|
+
|
31
|
+
$('input').each(function(){
|
32
|
+
|
33
|
+
var val = $(this).val();
|
34
|
+
|
35
|
+
if(terms === val) {
|
36
|
+
|
37
|
+
$(this).prop("checked",true);
|
38
|
+
|
25
|
-
}
|
39
|
+
}
|
40
|
+
|
41
|
+
});
|
26
42
|
|
27
43
|
|
28
44
|
|
29
|
-
params = decodeURIComponent(params);
|
30
|
-
|
31
|
-
$('input[type=checkbox]').each(function(){
|
32
|
-
|
33
|
-
var val = $(this).val();
|
34
|
-
|
35
|
-
if(params.match(val)) {
|
36
|
-
|
37
|
-
$(this).prop("checked",true);
|
38
|
-
|
39
|
-
|
45
|
+
}
|
40
|
-
|
41
|
-
});
|
42
46
|
|
43
47
|
|
44
48
|
|