如何动态产生一行的控件?
我的意思是,我每次点某个按纽,页面就产生一行的控件,这一行中有下拉框,也有输入框.请高手帮忙,急!
<table id="tb" width="100%" border="1" align="center" cellpadding="1" cellspacing="1" style="border-collapse:collapse" bordercolor="#111111">
<tr>
<th scope="col" width="10%">类别</th>
<th scope="col" width="10%">证件类型</th>
<th scope="col" width="25%">代码</th>
<th scope="col" width="25%">申请单位/个人名称</th>
<th scope="col" width="30%">联系地址</th>
</tr>
点击按钮能动态产生下列一行的控件.
<tr>
<td><select name="type"><option value="0">单位</option><option value="1">个人</option></select> </td>
<td><select name="type"><option value="0">单位</option><option value="1">个人</option></select> </td>
<td><input type="text" name="rcardno" size="20"/></td>
<td><input type="text" name="rname" size="30"/></td>
<td><input type="text" name="raddress" size="30"/></td>
</tr>
</table>