Speed up development with full-stack environments for every branch.

Learn More

How to use the jQuery $().ready function [JavaScript]

1519 Runs 1924 Views 305 Copies

some HTML5 magic

Saved

Saved

runnable_983 5

runnable_983
published 4 years ago

    /*  jQuery ready function. Specify a function to execute when the DOM is fully loaded.  */
    $(document).ready(
      
      /* This is the function that will get executed after the DOM is fully loaded */
      function () {
        $("#status").html("jQuery is loaded and ready.");
      }
    
    );
    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).