【发布时间】:2017-11-15 00:01:06
【问题描述】:
我想在表单中创建一个文件输入的对象表单,我该怎么做 .如何创建文件输入的表单对象
<html>
<head>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<form id="helooo">
<input type="text" name="foo1" value="" />
<input type="text" name="foo2" value="" id="r1"/>
<input type="file" name="f1" value="" id="r2"/>
<button type="submit" id="s1"> ab</button>
</form>
<script>
$(".quote_save").click(function() {
var oElements = {};
$('form'){
oElements[this.name] = = this.value;
});
});
</script>
</body>
</html>
【问题讨论】:
标签: javascript jquery