<table border=1> <tr id=a1> <td><input></td><td><input></td> </tr> </table> <input type=button name=ok onclick=add()> <script language=JavaScript> i=1 function add(){ var newTR = a1.cloneNode(true); newTR.id="a"+(++i) a1.parentNode.insertAdjacentElement("beforeEnd",newTR); } </script>
You need to create an account or log in to post comments to this site.