<script language="javascript" type="text/javascript">
    function checkLength(ctl)
    {
       var maxLength=200;
       var nowLength=ctl.value.length;        
       if (nowLength>maxLength)
       {
            ctl.value=ctl.value.substring(0,maxLength);                      
       }
    }
    </script>

 

调用时:onkeyup="checkLength(this);"

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2022-02-06
  • 2021-06-29
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2022-01-19
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案