Skip to main content

Questions tagged [jquery-3]

New features of jQuery 3.0 or changes in behaviour from jQuery 2.x to jQuery 3.x. Always use together with the [jquery] tag.

250 votes
5 answers
179k views

jquery 3.0 url.indexOf error

I am getting following error from jQuery once it has been updated to v3.0.0. jquery.js:9612 Uncaught TypeError: url.indexOf is not a function Any Idea why?
Kamrul's user avatar
  • 7,281
48 votes
3 answers
23k views

What is slim in file.slim.js

Excuse my ignorance but I just installed jQuery using npm and between the jQuery files there's a file called jquery.slim.js, what is slim? I know the min stands for minified but slim is new to me!. ...
Khaled Al-Ansari's user avatar
16 votes
1 answer
29k views

jQuery 3 slim ajax basic example

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({ url: '/echo/json', type: '...
superfive33's user avatar
  • 1,134
11 votes
3 answers
30k views

Bootstrap-Datetimepicker not working with the jQuery 3

Bootstrap-datetimepicker is not working with jQuery 3.1.1. I need to use the same jQuery library to run all the other dependent functions.
Karan Batra's user avatar
9 votes
1 answer
11k views

Async/Await with JQuery document READY

It works with document.addEventListener("DOMContentLoaded", async () => {}) but I am curious of making it work with JQuery. And also, I want with Async/Await, not promises because later I ...
Venda 97's user avatar
  • 265
7 votes
2 answers
21k views

jQuery.fn.load() is deprecated?

jQuery.fn.load() is deprecated in jquery 3.X.X? I'm making a mess with documentation. mycode is: $("#myDiv").load('mypage.html'); How I can load mypage.html into #myDiv?
user avatar
7 votes
0 answers
3k views

i have an error message in jQuery.readyException

i want update jquery to lately version so i was replace 1.11.0 with 3.1.0 but it is not working i have an error message 'unexcepted exception in Lib/js/lib.jquery.js, 'safari' is not undefined' ...
Hee's user avatar
  • 73
6 votes
1 answer
6k views

TypeError: $.ajax(...).done(...).fail(...).complete is not a function

I suddenly started getting the following: TypeError: $.ajax(...).done(...).fail(...).complete is not a function My code: this.sendRequest = function (type, extension, data, successCallback, ...
BLAZORLOVER's user avatar
  • 1,991
6 votes
1 answer
2k views

jQuery's function $(function())’s execute order when the $(function()) called more one times

Code like this: $(window.document).ready(function () { window.alert('alert 1'); }); $(function () { window.alert('alert 2'); }); $(function () { window.alert('alert 3'); }); <!...
Liberty's user avatar
  • 649
5 votes
2 answers
2k views

Zurb Foundation 5 and Jquery 3 incompatible?

I am trying to use Zurb Foundation 5 with JQuery 3.0.0.1 and seem to be having some compatibility issues. When I initialize Foundation $(document).foundation(); a javascript error is thrown Object ...
John S's user avatar
  • 8,189
4 votes
1 answer
12k views

jQuery.Deferred exception: The string did not match the expected pattern

I've a little headache with this console error, ONLY on Safari (working on MacBook actually). I have this function: function exists(element){ var exists = document.querySelector(element); ...
Simone Gizzi's user avatar
4 votes
1 answer
2k views

Why is my 'load' event/function not beeing executed after switching to jQuery 3?

Since I've upgraded from jQuery 1.x / jQuery 2.x to jQuery 3.x, my existing code will not be executed correctly anymore. Everything works fine, but the load event listener gets not triggered anymore ...
eisbehr's user avatar
  • 12.4k
4 votes
1 answer
2k views

How to abort a jQuery 3.0 AJAX request?

How to abort an AJAX request in jQuery 3.0? this.r = $.ajax(); The promise does not have a abort method like in older jQuery versions if(this.r && this.r.state() == 'pending') { this.r....
pokahotass's user avatar
4 votes
0 answers
135 views

Debugging exceptions with jQuery 3.0

I recently upgraded from jQuery 2.4.1 to 3.2.1, and now I'm noticing that any exception that occurs during document ready handling (inside $(function() { ... })) instead of giving proper traceback and ...
riv's user avatar
  • 7,234
3 votes
5 answers
8k views

Event on First click, Second click, and Third click

$('#element').toggle(function(){ $(this).addClass('one'); }, function(){ $(this).removeClass('one').addClass('two'); }, function(){ $(this).removeClass('...
Riot Zeast Captain's user avatar

15 30 50 per page
1
2 3 4 5
7