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.
jquery-3
91
questions
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?
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!.
...
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: '...
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.
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 ...
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?
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'
...
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, ...
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');
});
<!...
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 ...
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);
...
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 ...
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....
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 ...
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('...