以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]移动开发日期输入框  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=102677)

--  作者:kaiyu
--  发布时间:2017/6/23 16:39:00
--  [求助]移动开发日期输入框
日期输入框如何限制它只能输入当日几点以后的日期
--  作者:有点蓝
--  发布时间:2017/6/23 17:44:00
--  
可以做个提示

js代码

function checktime(){
    var sh = document.getElementById("sh");
if (sh.value > \'12:00\'){
alert("超过12点");
sh.value=\'\';
}
}

HttpRequest

Select Case e.Path
    Case "test.htm"
        Dim wb As New weui
        wb.AddForm("","form1","test.htm")
        With wb.AddInputGroup("form1","ipg1","日期输入")
            .AddInput("rq","日期","date")
            .AddInput("sh","时间","time").Attribute = "onchange=\'checktime()\'"
            .AddInput("rs","日期时间","datetime-local")
        End With
        With wb.AddButtonGroup("form1","btg1",True)
            .Add("btn1", "确定", "submit")
        End With
    wb.AppendHTML("<script src=\'./lib/ajaxform.js\'></script>") \'引入脚本文件
        e.WriteString(wb.Build) \'生成网页
End Select