TypeError Ajax is not a function

TypeError Ajax is not a function

Hi,

I'm quite blur in which part is causing this error (TypeError $.ajax is not a function) Already try almost every solution i found on the internet.

  1. <script src="https://code.jquery.com/jquery-2.2.4.min.js" type="text/javascript"></script>
  2. <script>
  3.     $(document).ready(function() {
  4.         console.log($.ajax);
  5.     });
  6. </script>

  7. <script>
  8. //listing charity in dropdown list
  9. $.ajax({ 
  10.     type: 'GET', 
  11.     url: 'http://ayambrand-com-my-v1.cloudaccess.host/index.php?option=com_echarity&format=raw&task=api.get_charities',
  12.     data: { get_param: 'value' }, 
  13.     dataType: 'json',
  14.     success: function (data) {
  15.       console.log(data);
  16.         $.each(data, function(index, element) {
  17.             $('#list').append($('<option>', {
  18.              text: element.charity_name,
  19.              value : element.id
  20.             }));
  21.         });
  22.         //end of success loop
  23.     }
  24. });
  25. //get dropdown list charity selection
  26. function getcharity($charityID){
  27.     $.ajax({
  28.         url : "http://ayambrand-com-my-v1.cloudaccess.host/index.php?option=com_echarity&format=raw&task=api.get_charity&charity_id="+$charityID,
  29.         cache : false,
  30.         beforeSend : function (){
  31.             //Show a message
  32.             alert("On the way to sending request!!!");
  33.         },
  34.         complete : function($response, $status){
  35.             if ($status != "error" && $status != "timeout") {
  36.                 $('#contents').html($response.responseText);
  37.             }
  38.         },
  39.         error : function ($responseObj){
  40.             alert("Something went wrong while processing your request.\n\nError => " + $responseObj.responseText);
  41.         }
  42.     }); 
  43. }
  44. //end get dropdown list charity selection
  45. </script>
  46. <script>

  47. </script>
  48. <?php
  49. //echo $charity_id;
  50. ?>
  51. <div>
  52.     <form>
  53.     <table class="table-a">
  54.         <tr>
  55.         <td>
  56.             <select id="list"  onChange="getcharity(this.value)">

  57.             </select>
  58.         </td>
  59.         </tr>

  60.     </table>
  61.      <table class="table-b">
  62.      <tr>
  63.      <td>
  64.      <span id="contents"></span>
  65.      </td>
  66.      </tr>
  67.      </table>
  68.     </form>
  69. </div>
  70.