check if checknox is checked code example
Example 1: how to check input is selected or not
$('#' + id).is(":checked")
Example 2: how to check if input is checked javascript
const cb = document.getElementById('accept');
console.log(cb.checked);
$('#' + id).is(":checked")
const cb = document.getElementById('accept');
console.log(cb.checked);