I have the following code :
$('#postTrx').click(function(){
var hargaBrg = $("tbody").find("tr").eq(i).find("td").eq(3).text();
var id = $("tbody").find("tr").eq(i).find("td").eq(0).text();
var jumlah = $("tbody").find("tr").eq(i).find("td").eq(4).text();
$.ajax({
type : "post",
url : "input_pembelian.php",
data: "{'idBeliBarang':" + id + ",'harga':'" + hargaBrg + "','jumlah':'" + jumlah + "}",
});
});
How can I access a jQuery variable from AJAX?