JS 添加多个上传 input
来源:互联网 发布:java中有几种类型的流 编辑:程序博客网 时间:2024/06/14 15:55
<!DOCTYPE html>
<html>
<head>
<title>test.html</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery-1.6.4.min.js"></script>
<script type="text/javascript">
//添加一行<tr>
function add() {
var content = "<tr><td>";
content += "<input type='file' name='file'><input type='button' value='Remove' onclick='remove(this)'>";
content +="</td></tr>"
$("#fileTable").append(content);
}
//删除当前行<tr>
function remove(obj) {
$(obj).parent().parent().remove();
}
</script>
</head>
<body>
<form id="fileForm" action="" method="post" enctype="multipart/form-data">
<table id="fileTable">
<tr>
<td>
<input type="file" name="file"><input type="button" id="addButon" value="Add" onclick="add()">
</td>
</tr>
</table>
</form>
</body>
</html>
<html>
<head>
<title>test.html</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery-1.6.4.min.js"></script>
<script type="text/javascript">
//添加一行<tr>
function add() {
var content = "<tr><td>";
content += "<input type='file' name='file'><input type='button' value='Remove' onclick='remove(this)'>";
content +="</td></tr>"
$("#fileTable").append(content);
}
//删除当前行<tr>
function remove(obj) {
$(obj).parent().parent().remove();
}
</script>
</head>
<body>
<form id="fileForm" action="" method="post" enctype="multipart/form-data">
<table id="fileTable">
<tr>
<td>
<input type="file" name="file"><input type="button" id="addButon" value="Add" onclick="add()">
</td>
</tr>
</table>
</form>
</body>
</html>
- JS 添加多个上传 input
- html中input上传多个文件
- input 选择多个文件上传
- input 框上传多个文件
- 通过JS动态添加上传表单---制作多个上传的静态页面
- js添加input
- 多附件上传之动态添加input标签
- js添加input节点,删除input节点
- php 多个input上传文件或图片
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- input标签file类型,选择多个文件进行上传
- memcache dump all items key
- 又接上文
- zoj 3494
- mongoDB for Java 查询显示指定字段
- 通用计算时代来临 论CUDA与OpenCL的异同
- JS 添加多个上传 input
- 程序员的出路之一
- 初窥spring3 MVC for annotation
- 谈谈QT的动画框架
- Android_Zipalign优化apk包
- linux 内存管理——性能优化策略
- 临时存储
- 前台页面传值时乱码问题 解决
- how to use kendo.ui.Grid