// :unchecked Selector
// Matches all elements that are unchecked (type check box or radio).
// Matches all elements that are unchecked (type check box or radio).
$.extend($.expr[':'], {
unchecked: function (obj) {
return ((obj.type == 'checkbox' || obj.type == 'radio') && !$(obj).is(':checked'));
}
});
eg:
alert($('input:checkbox:unchecked').length);