jQuery.Deferred exception: $ is not a function TypeError: $ is not a function code example

Example 1: $ is not a function jquery

There are quite lots of answer based on situation.

1) Try to replace '$' with "jQuery"

2) Check that code you are executed are always below the main jquery script.

<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){

});
</script>
3) Pass $ into the function and add "jQuery" as a main function like below.

<script type="text/javascript">
jQuery(document).ready(function($){

});
</script>

Example 2: Uncaught TypeError is not a function JavaScript

jQuery(document).ready(function($){

    // jQuery code is in here

});

Example 3: uncaught TypeError: $.jajax is not a function

<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>

Example 4: VM1188:1 Uncaught TypeError: $ is not a function at :1:1

jQuery(document).ready(function($){
  //you can now use $ as your jQuery object here
});