1 function checkac(){
2 with (document.forms[0]){
3 document.getElementById('ac').innerHTML=trim(document.getElementById('ac').innerHTML);
4 if((document.getElementById('ac').innerHTML).length>255){
5 alert("警告:[审核意见]的长度应小于255个字节!");
6 ac.focus();
7 return false;
8 }
9 return true;
10 }
11 }
1 <tr>
2 <td class="td1" align="center">
3 审核意见
4 </td>
5 <td nowrap colspan="5">
6 <html:textarea name="moduleInfoForm" property="maModbaseinfo.ac" styleId="ac" cols="90" />
7 </td>
8 </tr>
查看原代码如下:
1 <tr>
2 <td class="td1" align="center">
3 审核意见
4 </td>
5 <td nowrap colspan="5">
6 <textarea name="maModbaseinfo.ac" cols="90" id="ac">001</textarea>
7 </td>
8 </tr>