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