jquery run after page load 1

jquery run after page load

$(function(){
  // equal to $( document ).ready(function() {
});
  

Here is what the above code is Doing:
1. We’re using the jQuery library, which is a JavaScript library that makes it easier to use JavaScript on your website.
2. We’re using the $(function(){}); syntax to tell jQuery to run the code inside the function when the page is ready.
3. We’re using the $(“p”).hide(); syntax to tell jQuery to find all

elements on the page and hide them.

Similar Posts