28,409
社区成员




<html>
<head>test</head>
<script language="javascript">
function setid()
{
str='<br>';
if(!window.form1.upcount.value)
window.form1.upcount.value=1;
for(i=1;i<=window.form1.upcount.value;i++)
str+='岗位'+i+':<input type="text" name="text'+i+'" style="width:400" class="tx1"><br><br>';
window.upid.innerHTML=str+'<br>';
}
</script>
<body>
<table>
<tr>
<td>
<li> 需要增加输入框的个数
<input type="text" name="upcount" value="1">
<input type="button" name="Button" onClick="setid();" value="设定">
</li>
</td>
</tr>
<tr>
<td id="upid"> 输入1:
<input type="text" name="text1" style="width:250" class="tx1" value="">
</td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重执">
</td>
</tr>
</table>
</body>
</html>