Check if input box checked in jQuery

## Check if the checkbox is checked or not. Here, checkbox is the id of checkbox. $(‘#checkbox’).on(‘click’, function(){ if ($(this).is(‘:checked’)== true)  { console.log(‘Checked’); } else if ($(this).is(‘:checked’)== false) { console.log(‘Not Checked’); } )};