日期:2014-05-16  浏览次数:20473 次

怎么复制文本框
就和邮件里添加附件一样
点添加就出来一个文本框
大家帮帮忙啊

------解决方案--------------------
L@_@K

<body>
<input type= "button " id= "btnAdd " value= "add " /> <br />
<script type= "text/javascript ">
<!--
var oAdd = document.getElementById( "btnAdd ");
oAdd.onclick = function ()
{
var oInput = document.createElement( "input ");
oInput.type = "text ";
document.body.appendChild(oInput);
var oBr = document.createElement( "br ");
document.body.appendChild(oBr);
};
//-->
</script>
</body>