I have this code an I need to set the condition to check if my checkbox is checked or not.
HTML:
   <div id="checkbox_group">
     <input type="checkbox" value="21" name="">21
     <input type="checkbox" value="16" name="">16
     <input type="checkbox" value="20" name="">20
   </div>
jQuery:
$('#checkbox_group input[type=checkbox]').click(function() { 
    if (/* Condition to check if checkbox is checked */)) {
        // if is checked then after click change to false like: checked="false"
    }
    else {
        // if is NOT checked then change it like checked="true"
    }
});
 
     
    