日期:2014-05-17 浏览次数:20530 次
function setdisplay(n,m) {
var classElements = [];
var allElements = document.getElementsByTagName("tr");
for (var i = 0; i < allElements.length; i++) {
if (allElements[i].className == n) {
allElements[i].style.display = m;
}
}
return classElements;
}
function workchange() {
var oWork = document.getElementById('<%=ddlWork.ClientID %>');
if (oWork.value == '学生') {
setdisplay('studenttr', 'block');
}
else {
setdisplay('studenttr', 'none');
}
}