how to know if checkbox is checked in code example Example: if checkbox is checked if ($('#id_input').is(':checked')) { }