Alert on checkbox checked jQuery code example Example: checkbox jquery checked var isExpanded = $(this).attr('checked') == "checked";