$("#salary_IsFix").click(function () {
var traget1 = document.getElementById("RadixAmount13");
var traget2 = document.getElementById("RadixAmount12");
if (traget1.style.display == "none" || traget2.style.display == "none")
{
//隐藏
traget1.style.display = "";
traget2.style.display = "";
}
else {
//显示
traget1.style.display = "none";
traget2.style.display = "none";
}
});
//给一个复选框赋值
$("#salary_IsFix").attr("checked", 'true');
<html>
<body>
<%=Html.CheckBoxFor(model=>model.salary.IsFix) %>
<ul>
<li id="RadixAmount12" style="display: none"><input type="button" id="employeeNo" name="employeeNo"></input></li>
<li id="RadixAmount13" style="display: none"><input type="button" id="employeeNo" name="employeeNo"></input></li>
</ul>
</body>
</html>