1 <script type="text/javascript">
2
3 <!--addMore 函数可以提供上传多个文件上传-->
4
5 function addMore()
6 {
7
8 var td = document.getElementById("more");
9
10 var br = document.createElement("br");
11 var input = document.createElement("input");
12 var button = document.createElement("input");
13
14 input.type = "file";
15 input.name = "upload";
16
17 button.type = "button";
18 button.value = " 删除 ";
19
20 button.onclick = function()
21 {
22 td.removeChild(br);
23 td.removeChild(input);
24 td.removeChild(button);
25 }
26
27 td.appendChild(br);
28 td.appendChild(input);
29 td.appendChild(button);
30 }
31
32 </script>