jQuery Tutorial


jQuery Example


jQuery References


jQuery ready() Event Reference


  jQuery Events References


Uses

jQuery ready() event Occurs when function is ready to document.


Bind Function to ready event

Defined function run when the ready() event occurs on the selected elements.

Syntax

$(document).ready(function) 

jQuery ready() events supported following parameters.

ParameterDescription
functionFunction is Optional parameter. Function define the ready to run when event occur.

Example

<script type="text/javascript"> 
$(document).ready(function(){
      $("p").hide();	
    $("#btn1").click(function () {
      $("p").toggle("slow");
    });
});	
</script>
Online Try This Code Your Self....   »

  jQuery Events References