以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  web中怎么修改按钮标题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=177703)

--  作者:cd_tdh
--  发布时间:2022/5/31 15:12:00
--  web中怎么修改按钮标题

老师,这个怎么实现:输入框 : 考勤人员 有值时,AddVcodeButton的标题显示:清除,无值时,显示查询

With wb.AddInputGroup("form1","考勤人员查询","考勤人员查询")
    With .AddInputCell("ic4") \'通过InputCell增加输入框
        .AddLabel("lsj","考勤人员",0) \'增加标签,0显示在左边
        .AddInput("考勤人员","考勤人员",1).PlaceHolder= "请输入考勤人员姓名"             \'增加输入框,1表示显示在中间 \'增加输入框,1表示显示在中间
        .AddVcodeButton("hym","查 询",2).Attribute = ""  \'增加获取验证码按钮,2表示显示在右边
    End With
End With

[此贴子已经被作者于2022/5/31 15:13:26编辑过]

--  作者:有点蓝
--  发布时间:2022/5/31 15:14:00
--  
"考勤人员"控件绑定onchange事件,在js函数里判断控件有值就设置标题1.没有值就设置标题2