JS:
function highlight(chkbox){
chkbox.parentNode.parentNode.style.background = (chkbox.checked ? "#b2ffb2" : "#e0ffff");
document.cookie = 'sbor=' + Number(chkbox.checked) + '; path=/; expires=Mon, 31 Jan 4000 00:00:00 GMT';
}
PHP:
<input
type="checkbox"
form="ORDER_FORM"
name="sbor"
id="sbor"
value = "22"
onclick="highlight(this);"
<?=$_COOKIE['sbor'] ? 'checked' : ''?>
/>