限定200字以内.

<asp:TextBox ID="txtDomainUse" runat="server" TextMode="MultiLine" Rows="4"  Width="99%" onkeydown="textCounter(this,200)" onkeyup="textCounter(this,200)"></asp:TextBox>

 

 

<script type="text/javascript">
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
</script>

相关文章:

  • 2022-12-23
  • 2021-08-02
  • 2022-03-04
  • 2022-12-23
  • 2021-12-15
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-02
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
相关资源
相似解决方案