get whether input element is checked or not js code example
Example: how to check if input is checked javascript
const cb = document.getElementById('accept');
console.log(cb.checked);
const cb = document.getElementById('accept');
console.log(cb.checked);