--------------------------------天道酬勤
如何添加多个附件
代码如下:
<html>
<head>
<meta http-equiv="content-type" content="text/html" charset="utf-8">
<title>添加附件</title>
<style type="text/css">
.file{
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="files" id="files">
<div class="file" name="file">
<input type="file">
<input type="button" value="删除附件" onclick="removeFile(this)">
</div>
</div>
<input type="button" value="添加附件" id="addFile" onclick="addFile()">
</body>
<script type="text/javascript" src="js/add.js">
</script>
</html>