var checkBox = document.getElementById(id_field); if (checkBox.checked== true){ }
document.getElementById("checkbox").checked;
const cb = document.getElementById('accept'); console.log(cb.checked);