以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  限制AddTextArea的输入字数  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=173530)

--  作者:wh420
--  发布时间:2021/12/3 17:17:00
--  限制AddTextArea的输入字数
如何限制AddTextArea的输入字数,例如:限制5个字,超出时有提示,或按确定按钮后有提示。
With wb.AddInputGroup("form1","ipg2","备注")
    .AddTextArea("other",1).Placeholder = "请输入5字以内的备注"
    .attribute="style=\'color: black;text-align: left;font-size: 14px;\'"
End With

--  作者:有点蓝
--  发布时间:2021/12/3 17:21:00
--  
With wb.AddInputGroup("form1","ipg2","备注")
  With   .AddTextArea("other",1)
. attribute="maxlength=\'5\'"
.Placeholder = "请输入5字以内的备注"
End With
    .attribute="style=\'color: black;text-align: left;font-size: 14px;\'"
End With