Foxtable(狐表)用户栏目专家坐堂 → 限制AddTextArea的输入字数


  共有3462人关注过本帖树形打印复制链接

主题:限制AddTextArea的输入字数

帅哥哟,离线,有人找我吗?
wh420
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1107 积分:10586 威望:0 精华:0 注册:2014/2/19 16:32:00
限制AddTextArea的输入字数  发帖心情 Post By:2021/12/3 17:17:00 [只看该作者]

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

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109736 积分:558396 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By: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

 回到顶部