vbs实现的下拉框对应键入值
程序员文章站
2022-06-16 19:58:42
vbs实现的下拉框对应键入值 选择自 gu1dai 的 blog&nbs...
vbs实现的下拉框对应键入值 选择自 gu1dai 的 blog
关键字 vbs实现的下拉框对应键入值
<title>select center</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="generator" content="editplus">
<meta name="author" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<head>
<script language="vbscript">
<!--
function keypress()
tname=mainform.tname.value
'alert(mainform.tname.value)
for each tn in mainform.tablename
allvalue=tn.value
if left(allvalue,len(tname))=tname then
'alert(allvalue)
mainform.tablename.value=allvalue
exit for
end if
next
end function
//-->
</script>
<style>
body{text-align:left;font:12px #000080 ;}
#main{float:left;width:750px;border:#dddddd 1px solid;margin:5px 10px;padding:10px 5px;}
#maintable{width:700; padding:1px; border:1px solid #dddddd;font:12px;color:#000080; }
#maintable td{ border: 0px solid #008000; padding-left: 4px; padding-right: 4px;
padding-top: 1px; padding-bottom: 1px;background:#dddddd }
#search{float:left;width:600px;border-bottom:#0000ff 1px solid;margin:0px;padding:2px 10px;}
#result{float:left;width:600px;border:#dddddd 0px solid;margin:2px 1px;padding:2px 10px;}
#test{float:left;width:750px;border:#dddddd 1px solid;margin:5px 10px;padding:10px 100px;}
#main p{}
</style>
<body>
<div id="test">
<a href="classtrn.asp" target="blank">classtrn</a>
</div>
<div id="main">
<table id=maintable>select top 10 * from adjust <tr><td>ad_emno</td>
<td>ad_seqno</td>
<td>ad_date</td>
<td>ad_date1</td>
<td>ad_csno1</td>
<td>ad_dpno1</td>
<td>ad_date2</td>
<td>ad_csno2</td>
<td>ad_dpno2</td>
<td>ad_type</td>
<td>ad_type2</td>
<td>updid</td>
<td>upddate</td>
</tr></table><form method=post id=mainform action=mtable.asp>
select the table:<select name=tablename><option value=a_prwork >a_prwork</option>
<option value=account >account</option>
<option value=adjust selected>adjust</option>
<option value=applica1 >applica1</option>
<option value=aprwork >aprwork</option>
<option value=backb >backb</option>
<option value=clothes >clothes</option>
<option value=meal >meal</option>
<option value=mealdept >mealdept</option>
<option value=nosh >nosh</option>
<option value=ostockb >ostockb</option>
<option value=ostockh >ostockh</option>
<option value=palletc >palletc</option>
<option value=worktoholb >worktoholb</option>
<option value=worktoholh >worktoholh</option>
<option value=xcard >xcard</option>
<option value=zv01 >zv01</option>
<option value=zv02 >zv02</option>
</select>
tableame:<input type=text name=tname onkeyup='vbscript:keypress()'> topnum:<input type=text name=topnum size=5><input type=submit name=action value=submit> <input type=reset value=reset></form>the time used 0.203125
</div>
</body>
</html>
关键字 vbs实现的下拉框对应键入值
<title>select center</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="generator" content="editplus">
<meta name="author" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<head>
<script language="vbscript">
<!--
function keypress()
tname=mainform.tname.value
'alert(mainform.tname.value)
for each tn in mainform.tablename
allvalue=tn.value
if left(allvalue,len(tname))=tname then
'alert(allvalue)
mainform.tablename.value=allvalue
exit for
end if
next
end function
//-->
</script>
<style>
body{text-align:left;font:12px #000080 ;}
#main{float:left;width:750px;border:#dddddd 1px solid;margin:5px 10px;padding:10px 5px;}
#maintable{width:700; padding:1px; border:1px solid #dddddd;font:12px;color:#000080; }
#maintable td{ border: 0px solid #008000; padding-left: 4px; padding-right: 4px;
padding-top: 1px; padding-bottom: 1px;background:#dddddd }
#search{float:left;width:600px;border-bottom:#0000ff 1px solid;margin:0px;padding:2px 10px;}
#result{float:left;width:600px;border:#dddddd 0px solid;margin:2px 1px;padding:2px 10px;}
#test{float:left;width:750px;border:#dddddd 1px solid;margin:5px 10px;padding:10px 100px;}
#main p{}
</style>
<body>
<div id="test">
<a href="classtrn.asp" target="blank">classtrn</a>
</div>
<div id="main">
<table id=maintable>select top 10 * from adjust <tr><td>ad_emno</td>
<td>ad_seqno</td>
<td>ad_date</td>
<td>ad_date1</td>
<td>ad_csno1</td>
<td>ad_dpno1</td>
<td>ad_date2</td>
<td>ad_csno2</td>
<td>ad_dpno2</td>
<td>ad_type</td>
<td>ad_type2</td>
<td>updid</td>
<td>upddate</td>
</tr></table><form method=post id=mainform action=mtable.asp>
select the table:<select name=tablename><option value=a_prwork >a_prwork</option>
<option value=account >account</option>
<option value=adjust selected>adjust</option>
<option value=applica1 >applica1</option>
<option value=aprwork >aprwork</option>
<option value=backb >backb</option>
<option value=clothes >clothes</option>
<option value=meal >meal</option>
<option value=mealdept >mealdept</option>
<option value=nosh >nosh</option>
<option value=ostockb >ostockb</option>
<option value=ostockh >ostockh</option>
<option value=palletc >palletc</option>
<option value=worktoholb >worktoholb</option>
<option value=worktoholh >worktoholh</option>
<option value=xcard >xcard</option>
<option value=zv01 >zv01</option>
<option value=zv02 >zv02</option>
</select>
tableame:<input type=text name=tname onkeyup='vbscript:keypress()'> topnum:<input type=text name=topnum size=5><input type=submit name=action value=submit> <input type=reset value=reset></form>the time used 0.203125
</div>
</body>
</html>
推荐阅读
-
JavaScript实现获取select下拉框中第一个值的方法
-
jQuery 获取和设置select下拉框的值实现代码
-
jQuery实现点击下拉框中的值累加到文本框中的方法示例
-
jQuery - 实现获取select下拉框选项的改变触发的onchange事件选择的option值
-
一句sql更新两个表并可更新对应的字段值具体实现
-
使用pandas实现筛选出指定列值所对应的行
-
vue + element + select 获取下拉框的 label 和 value 值( 例如 绑定的是 id , 但后台要求即传 id ,又要传 id 对应的 name )
-
vbs实现的下拉框对应键入值
-
jQuery实现点击下拉框中的值累加到文本框中详解
-
我想根据数据库里存的每个人的不同职位值来显示对应include php文件要怎么实现