我有这段代码:
<input type="checkbox" name="smth1" />something1<br />
<input type="checkbox" name="smth2" />something2<br />
<input type="checkbox" name="smth3" />something3<br />
<input type="checkbox" name="smth4" />something4<br />
<br />
<input type="checkbox" name="anthr1" />anotherthing1<br />
<input type="checkbox" name="anthr2" />anotherthing2<br />
<input type="checkbox" name="anthr3" />anotherthing3<br />
<input type="checkbox" name="anthr4" />anotherthing4<br />
<br />
<input type="checkbox" name="new1" />newthing1<br />
<input type="checkbox" name="new2" />newthing2<br />
<input type="checkbox" name="new3" />newthing3<br />
<input type="checkbox" name="new4" />newthing4<br />
etc etc
和html:
{{1}}
这会为每个复选框创建Cookie。我想要做的是只在一个cookie中保存复选框状态。我很感激你的帮助!谢谢!