$(function () {
$('input[name="Checkbox1"]').click(function () {
if ($(this).is(':checked')) {
$('input[name="chk"]').each(function () {
//此处如果用attr,会出现第三次失效的情况
$(this).prop("checked", true);
});
} else {
$('input[name="chk"]').each(function () {
$(this).removeAttr("checked", false);
});
}
});
})
$('#choose1').click(function () {
$('.formula1').toggle()
})
$('#choose2').click(function () {
$('.formula2').toggle()
})