jQuery ready() Method

jQuery ready() event occurs when the document object model (DOM) is fully loaded. jQuery read() method triggers to initialize all jQuery events methods.


This syntax represent to the ready() method

Parameter Type Description
function Function Required. Specifies the function to execute after the document is loaded


This example represent the mouseover event

<!DOCTYPE html>
  <title>jQuery ready() method</title>
  <script src="jquery-latest.min.js"></script>
      $("#btn1").click(function () {
    <p>first paragraph start here...</p>
  <button id="btn1">Click Me</button>

Run it...   »