回答編集履歴
1
chousei
test
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
v.forEach(x=>{document.querySelector(`[name=checkBox][value="${x}"]`).checked=true;});
|
10
10
|
});
|
11
11
|
document.addEventListener('reset',()=>{
|
12
|
-
Cookies.remove('checkBox_selected_value'
|
12
|
+
Cookies.remove('checkBox_selected_value');
|
13
13
|
});
|
14
14
|
document.addEventListener('change',()=>{
|
15
15
|
v=JSON.stringify([...document.querySelectorAll('[name=checkBox]:checked')].map(x=>x.value));
|