how to check if checkbox is checked or not in html code example
Example 1: if checkbox is checked
if ($('#id_input').is(':checked')) { }
Example 2: how to check if input is checked javascript
const cb = document.getElementById('accept');
console.log(cb.checked);