sos:一个关于javascript的问题?
rdb7_1 -- RaddioButton
txt7_5 -- TextBox
tbody_Q7AB -- tbody
代码如下:
function chkQ7AB() {
var tbodyName = document.getElementById("tbody_Q7AB");
var txtbox = document.getElementById("txt7_5");
var rad = document.getElementById("ctl00_CalicoID1_rdb7_1");
if (tbodyName != null && rad != null) {
if (rad.Checked = true) {
tbodyName.style.display = "None";
txtbox.value = "";
txtbox.display = "None";
}
else {
tbodyName.style.display = "Block";
}
}
}
为什么只有当
rdb7_1 ,txt7_5,tbody_Q7AB 有显示的JS才允许正常,
有没有办法在postback能吧rdb7_1 ,txt7_5,tbody_Q7AB识别出来?
请大家指教!!打扰