JQuery: $.get is not a function
This will happen, too, if you use the SLIM version of jQuery.
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
gave me
>jQuery.get
:undefined
>jQuery.get()
:VM7130:1 Uncaught TypeError: jQuery.get is not a function
at <anonymous>:1:8
while loading the same library without the slim option
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
works well
jQuery.get() :Object {readyState: 1}
The $
variable you have is from Prototype-js, because you are using the jQuery.noConflict
method.
That method will restore the $
variable back to whichever library first implemented it.
You should use the jQuery methods on the jQuery
global object directly, eg.:
jQuery.get(/* .. */);
jQuery.getJSON(/* .. */);
// etc...
Or you can define another shorter variable as alias if you want:
var $j = jQuery.noConflict();