动态添加删除表格
<html><head><title>||Working with elements||</title></head><script type="text/javascript">function showDiv(){ var div = document.createElement("div");div.innerHTML = "<input type=\"text\" value=\"\" name=\"username\"/><a href=\"\">删除</a>";document.getElementById("org_div1").appendChild(div);}</script><body><div id='org_div1'> <a href="javascript:void(0)" >添加.</a></div></body></html>
页:
[1]