how to get a checkbox to return true or false in jquery code example Example: How do I check whether a checkbox is checked in jQuery? $('#' + id).is(":checked")