$("#sel_gram").change(function(){
var gramid = $(this).val();
$.ajax({
url: 'getBooth-details.php',
type: 'post',
data: {gram:gramid},
dataType: 'json',
success:function(response){
var len = response.length;
for( var i = 0; i<len; i++){
var id = response[i]['id'];
var name = response[i]['name'];
var booth_officer_name = response[i]['booth_officer_name'];
var booth_officer_contact = response[i]['booth_officer_contact'];
}
}
});
});
我想将其添加到我在选择选项下方设计的表格中。我正在正确获取所有数据,但无法在我的表中使用它。
这是我要显示数据的表格。
<table class="table table-hover p-table">
<thead>
<tr>
<th>Booth Name</th>
<th>Booth Adhikari</th>
<th>Contact</th>
<th>Custom</th>
</tr>
</thead>
<tbody>
<tr>
<td class="p-name">
<h6 id="boothname">Name</h6>
</td>
<td class="p-team">
<h6 id="adhikariname"></h6>
</td>
<td>
<h6 id="adhikaricontact"></h6>
</td>
<td>
<a href="project_details.html" class="btn btn-primary btn-sm"><i class="fa fa-folder"></i> View </a>
<a href="#" class="btn btn-info btn-sm"><i class="fa fa-pencil"></i> Edit </a>
<a href="#" class="btn btn-danger btn-sm"><i class="fa fa-trash-o"></i> Delete </a>
</td>
</tr>
</tbody>
</table>
这是我希望显示我的数据的地方..点击查看我想将用户带到下一页,展位显示我可以显示更多详细信息
汪汪一只猫