184584/jquery-on-page-load-event-not-working
I want to my text fade in when page is loaded, i tried with this code-
$(document).on("load", function () { $("#div1").fadeIn(); });
Why this not working? I'm using 3.1.1
You should be passing .on("load") on the window instead of the document:
$(window).on("load", function () { $("#div1").fadeIn(); });
Alternatively, you could call .ready() on the document:
$(document).ready(function () { $("#div1").fadeIn(); });
This event works with elements associated with ...READ MORE
Hello @kartik, If your CSS html element has the following overflow markup, scrollTop will ...READ MORE
jQuery Timepicker can parse the most used ...READ MORE
Use the ajaxStart() and ajaxStop() Method While working ...READ MORE
If you weren't aware, Microsoft is planning ...READ MORE
I suggest you to check 2 things That jquery.sparkline.js is actually ...READ MORE
Hey, jQuery is a fast and concise JavaScript ...READ MORE
Hey kartik, A variable declared outside a function has a ...READ MORE
The background color animate can be performed ...READ MORE
In this example the form input text ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.