如何使用ajax jquery上传多个图像而无需提交按钮上传?有人可以帮助我找出问题所在吗?
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script>
Run Code Online (Sandbox Code Playgroud)
这是代码
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script>
Run Code Online (Sandbox Code Playgroud) 如何id在提交表单后将其转换为PHP变量?我需要将总值传递给PHP变量.请帮我解决这个问题.
<div class="table-responsive">
<table class="table table-bordered">
<tr>
<th>Total Price</th>
</tr>
<tr>
<td>
<input class="form-control1" type='text' id='txt_totalprice' name='txt_totalprice[]'/>
</td>
</tr>
</table>
</div>
Total: <div id="totalvalue">0</div>
Run Code Online (Sandbox Code Playgroud)
这是脚本
<script type='text/javascript'>
$('#totalvalue').click(function() {
$.post("package.php", {
id: $(this).attr('id')
}, function(response) {
alert(response);
});
});
</script>
Run Code Online (Sandbox Code Playgroud)