Skip to main content

All Questions

Tagged with
0 votes
1 answer
876 views

jQuery .on('load') works for one function, but not a different one

I'm starting from the ground up, developing a single page web app. I'm using some jQuery to create a loading screen, which is replaced with the web app after all the code is loaded. I'm trying to do ...
Julian Lachniet's user avatar
2 votes
1 answer
75 views

Multi id selector

$('body').append($('#add-done-modal, #add-failed-modal', data)); This code should append the div with id add-done-modal and add-failed-modal to body. Those div are served in data among other stuff. I'...
Alexandre Parent's user avatar
0 votes
1 answer
354 views

(jquery3.0 up): window.load v.s. document.ready and wrong operation on window.load

I have already search for several websites through net. I still have the problem that: I choose window.load to execute the following code, but my blanket of height is always undefined. <!DOCTYPE ...
Tobyliao's user avatar
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
1 vote
1 answer
183 views

Jquery load anonymous?

Im a little bit confused now. Because I read all other answers but none is like my case. I manage to always get working my preloading gif using simple jquery load function. But now even though all ...
Tomas Alonso Rehor's user avatar
0 votes
3 answers
416 views

Unexpected behavior of code in window onload within document ready block

With JQuery <= 2.x, this code worked, displaying the text in the div after everything had loaded: <!DOCTYPE html> <html> <head> <title>JQuery 3 Window onload test</...
Tom's user avatar
  • 1,994