我想循环输出10个TEXTAREA,如何使这10个TEXTAREA的名字不同?

heijunma 2005-11-16 05:52:58
如题
...全文
96 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
king_shadow 2005-11-16
  • 打赏
  • 举报
回复
<form name=form1 method=post action="">
<%
for i=1 to 10
response.write "<textarea name=t"&i&"></textarea>"
next
%>
</form>
redtank2005 2005-11-16
  • 打赏
  • 举报
回复
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body >
<table width="100%" >
<tr>

<script language="javascript">

var str="" ;

for(j=0;j < 10 ;j++){
str += "<textarea name="+ 'textarea'+j +"></textarea>" ;
}
document.writeln(str);

</script>
</tr>

</table>

</body>

</html>
szjhxu 2005-11-16
  • 打赏
  • 举报
回复
<%
response.Write("<form name=form1 method=post action="""">")
for i=1 to 10
response.write "<textarea name=t"&i&"></textarea>"
next
response.write "</form>"
%>
hailang2005 2005-11-16
  • 打赏
  • 举报
回复
用变量就可以了。
提供网址参考:http://www.5axx.com/article/list.asp?type=asp

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧