Here is my code, I do not get a alert when it's done and no errors in developer screen.
How can I work out what is wrong?
- $.ajax({
- method: "POST",
- url: "scripts/distance-calculator.php",
- dataType: "json",
- data: { Dep: Dep, Arr: Arr, ACID: ACID, DOW: DOW, DepTime: DepTime }
- })
- .done(function( result ) {
- alert('aa');
- });