Select Case e.Path
Case "test.htm", ""
Dim wb As New weui
wb.AddForm("","form1","test.htm")
With wb.AddInputGroup("form1","ipg1","列表项目")
.AddSelect("os","操作系统","iOS|Windows|其它").Attribute="onchange=""if(this.value=='其它'){其它.parentNode.parentNode.removeAttribute('style')}else{其它.parentNode.parentNode.style.display='none'}"""
.AddInput("其它", "其它", "text").Attribute=""
End With
With wb.AddButtonGroup("form1","btg1",True)
.Add("btn1", "确定", "submit")
End With
wb.InsertHTML("<script>其它.parentNode.parentNode.style.display='none'</script>")
e.WriteString(wb.Build) '生成网页
End Select
[此贴子已经被作者于2019/5/31 12:58:45编辑过]