当前位置: 代码迷 >> ASP >> 怎么给文本框用变量取名
  详细解决方案

怎么给文本框用变量取名

热度:159   发布时间:2012-02-20 21:18:23.0
如何给文本框用变量取名
<%
j=1
do   while   j <20
%>
<input   type= "text "   name= "xh "加j变量   size= "11 "   value= "0 ">
<%
j=j+1
loop
%>

------解决方案--------------------
<%
j=1
do while j <20
%>
<input type= "text " name= "xh <%=j%> " size= "11 " value= "0 ">
<%
j=j+1
loop
%>
  相关解决方案