I\'m new to jQuery 3. The following is a basic fiddle, working with previous versions of jQuery, but does not work with jQuery 3
$(function() {
$.ajax({
jQuery 3 slim version doesn't support ajax.
According to the release docs,
Along with the regular version of jQuery that includes the ajax and effects modules, we’re releasing a “slim” version that excludes these modules. All in all, it excludes ajax, effects, and currently deprecated code.
To use .ajax
method, simply use the full version one.
Here's the working fiddle