<input type="checkbox" name="vehicle3" value="Boat" checked> #If if helps you give it Thumbs up
if ($('#id_input').is(':checked')) { }
const cb = document.getElementById('accept'); console.log(cb.checked);