how to check whether a checkbox is checked or not in jquery?
['<script>', '$(\'input[type="checkbox"]\'). click(function(){', 'if($(this). is(":checked")){', 'console.log("Checkbox is checked." );', '}', 'else if($(this). is(":not(:checked)")){', 'console.log("Checkbox is unchecked." );', '}']