真善美

勇于承担责任; 如果你做不到,要提前跟别人说明,不要等到事情发生后再解释。

  BlogJava :: 首页 ::  :: 联系 :: 聚合  :: 管理 ::
  55 随笔 :: 0 文章 :: 29 评论 :: 0 Trackbacks
 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>
posted on 2007-08-30 21:46 真善美 阅读(772) 评论(1)  编辑  收藏