target checked checkboxes jquery code example Example: checkbox jquery checked var isExpanded = $(this).attr('checked') == "checked";