-1
通过我的理解AJAX旅程提交表单我想出了这个问题,我不知道如何解决它首先IM在我的表请求DATAS如何从Ajax回调
load_data();
function load_data(page)
{
$.ajax({
url:"data.php",
method:"POST",
data:{page:page},
success:function(data){
$('#result').html(data);
},
error:function(exception){alert('Exeption:'+exception);}
})
}
这是只是表,其中将输出
<table>
<thead>
<tr>
<th>name</th>
<th>details</th>
<th>price</th>
<th></th>
</tr>
</thead>
<tbody id = "result">
,这是从网络选项卡中的输出
有一个从我试图用这个jQuery提交其形式来激活它的响应按钮,但是,这并不工作
$(document).on('click', '#add_details', function(){
$(this).parents("form").submit();
});
其中'add_details' – brk
哪里逻辑的其余部分的ID?何时/何处执行'load_data()'? – YoannM
为什么不**父母**而不是**父母**? –