javascript设置Table中行的显示
<script language="JavaScript">
<!--
function showAllClicked(checkbox)
{
var tbl = document.getElementById('<%=_tableMapping.ClientID%>');
var rows = tbl.getElementsByTagName("tr");
for(i = 0; i < rows.length; i++)
{
if(checkbox.checked)
{
rows[i].style.display = "";
}
else
{
if(rows[i].id.split("|")[1] == "none")
{
rows[i].style.display = "none";
}
else
{
rows[i].style.display = "";
}
}
}
}
//-->
</script>
<!--
function showAllClicked(checkbox)
{
var tbl = document.getElementById('<%=_tableMapping.ClientID%>');
var rows = tbl.getElementsByTagName("tr");
for(i = 0; i < rows.length; i++)
{
if(checkbox.checked)
{
rows[i].style.display = "";
}
else
{
if(rows[i].id.split("|")[1] == "none")
{
rows[i].style.display = "none";
}
else
{
rows[i].style.display = "";
}
}
}
}
//-->
</script>