js/app.js
/*
 * Calculate Tip Request ajax function call and callbacks
 */
Calculate Tip Request ajax function call and callbacks
Calculate Tip Request ajax function call and callbacks
function submitTipCalculationRequest(billSubtotal, tipPercentage, numPersons) {
  return $.ajax({
    type: "POST",
    url: "processTipRequest.php",
    data: "bill-subtotal=" + billSubtotal + "&tip-percentage=" + tipPercentage + "&num-persons=" + numPersons,
  });
}
function submitTipCalculationRequest ( billSubtotal , tipPercentage , numPersons ) { return $ . ajax ( { type : "POST" , url : "processTipRequest.php" , data : "bill-subtotal=" + billSubtotal + "&tip-percentage=" + tipPercentage + "&num-persons=" + numPersons , } ) ; }
Calculate Tip Request ajax function call and callbacks
Calculate Tip Request ajax function call and callbacks