$(
"#cbCheckbox1"
);
$(
"input[type='checkbox']"
);
$(
"input[name='cb']"
);
$(
"input:checkbox:checked"
);
$(
"input:[type='checkbox']:checked"
);
$(
"input[type='checkbox']:checked"
);
$(
"input:[name='ck']:checked"
);
$(
"#cbCheckbox1"
).val();
var
vals = [];
$('input:checkbox:checked').each(
function
(index, item) {
vals.push($(this).val());
});
$(
"#cbCheckbox1"
).click(
function
() {
if
($(this).prop(
"checked"
)) {
alert(
"选中"
);
}
else
{
alert(
"没有选中"
);
}
});
$('input:checkbox').attr(
"checked"
, 'checked');
$('input:checkbox').attr(
"checked"
, true);
$('input:checkbox').attr(
"checked"
, '');
$('input:checkbox').attr(
"checked"
, false);
$(
"input[type='checkbox']"
).attr(
"disabled"
,
"disabled"
);
$(
"input[type='checkbox']"
).attr(
"disabled"
, true);
$(
"input[type='checkbox']"
).prop(
"disabled"
, true);
$(
"input[type='checkbox']"
).prop(
"disabled"
,
"disabled"
);
$(
"input[type='checkbox']"
).removeAttr(
"disabled"
);
$(
"input[type='checkbox']"
).attr(
"disabled"
, false);
$(
"input[type='checkbox']"
).prop(
"disabled"
,
""
);
$(
"input[type='checkbox']"
).prop(
"disabled"
, false);