我正在使用此ajax调用来对数据库进行一些更改。我们点击确定时需要刷新表数据,而不重新加载页面。如果我刷新页面表将被删除。
$.ajax({
type: "GET",
data: dataString,
dataType: 'json',
url: "processOrgDisburse.php",
success: function(response) {
if(response[0]=='OK'){
$('.camt').html(response[1]);/*added by das comment*/
document.getElementById(orgBal).innerHTML=response[2];
document.getElementById('amtSpan').innerHTML=response[1];
document.getElementById(id).value="";
//tired this $("#testTab").load(); but not working
// testTab is an table id
}
else{
alert("The cause balance is lower than the amount disbursed. Please have additional funds added to the cause balance");
document.getElementById(id).value="";
}
}
});
由于