DIV与JAVASCRIPT问题,请教
请教大家一个问题,只想隐藏DIV ID=a1、a2、a3等没有textarea的DIV,可是现在连div id=n1的也隐藏了啊。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<p>
</p>
<style type="text/css">
ul {width:100%;height:100%;list-style:none; padding:0px; margin:0px;}
li {float:left; height:60px;text-align:center;line-height:60px; padding-top:5px;}
li.b {border-bottom:1px solid #000;border-right:1px solid #000; width:20%; }
li.zhongjian {border-bottom:1px solid #000; width:59%;border-right:1px solid #000; text-align:left; padding-left:6px; }
li.you {
border-bottom:1px solid #000;
width:20%; margin-top:auto;
}
li.b1 {border-right:1px solid #000; width:20%; }
li.zhongjian1 {width:59%;border-right:1px solid #000; text-align:left; padding-left:6px; }
li.you1 {
width:20%; margin-top:auto;
}
td { font-size: 9pt}
.title { font-size: 10.5pt}
.iwhite {
border-left: 1px solid rgb(255,255,255);
border-right: 1px solid rgb(255,255,255);
border-top: 1px solid rgb(255,255,255);
border-bottom:1px solid rgb(0.0,255);
font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
font-size: 9pt; color: #298583;background:#ffffff; font-weight: normal}
.igray {font-family: "宋体";
font-size: 9pt;
color: #000000;
background:#ffffff;
font-weight: normal;
border-bottom: 0px solid #D7E0EC;
border-top: 0px solid #DADBE3;
border-right: 0px solid #DADBE3;
border-left: 0px solid #DADBE3;
}
.igrby {font-family: "宋体";
font-size: 9pt;
color: #000000;
background:#ffffff;
font-weight: normal;
border-bottom: 0px solid #D7E0EC;
border-top: 0px solid #DADBE3;
border-right: 0px solid #DADBE3;
border-left: 0px solid #DADBE3;
}
.tabborder {
border:1px solid #ffffff;
}
.writetd {
text-align:left;
padding:6px;
}
</style>
<table border="0" cellpadding="0" cellspacing="0" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" width="100%">
<tbody>
<tr>
<td align="middle" height="42" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px">
<font size="+1"><strong>员工离职审批单</strong></font></td>
</tr>
</tbody>
</table>
<table align="center" border="1" bordercolor="#666666" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="95%">
<tbody>
<tr>
<td bgcolor="#ffffff" colspan="2" style="text-align: center">
公文标题</td>
<td bgcolor="#ffffff" class="writetd" colspan="6">
<input name="文件标题" size="40" /><span style="color: #8b4513">(例:生产部张三的离职申请)</span></td>
</tr>
<tr>
<td class="writetd" style="text-align: center">
姓名</td>
<td class="writetd">
<input id="3698" name="姓名&q