I have the following
$.ajax({
type: "POST",
url: "qry_invControl.cfm",
data: "p_sales_price=" + input.val() + "&action=getCashPrice",
cache: false,
success: function(data) {
$("#cashPrice_"+num).html(data);
}
});
I need to modify my qry_invControl.cfm to return other stuff like terms, monthly payment besides the cashPrice. How do I modify my success funtion so that I could do something like:
$("#cashPrice_"+num).html(data.cashPrice);
$("#terms_"+num).html(data.terms);
$("#monthlyPayment_"+num).html(data.monthlyPayment);
I will need to populate other divs to show the related data (terms,monthlyPayment) with one ajax call which will come from qry_invControl.cfm.