jQuery Tutorial


jQuery Example


jQuery References


jQuery bind() Event Reference


  jQuery Events References


Uses

Event occurs, When bind() event attach one or more event handlers for selected elements in specific function to run.


Syntax

$(selector).bind(event,[data],function)

jQuery bind() events supported following parameters.

ParameterDescription
eventevent is Required parameter. event define the one or more events attach to the elements.
datadata is Optional parameter. data define the addition data pass to the function.
functionFunction is Optional parameter. Function define the ready to run when event occur.

Bind() Event Example

<script type="text/javascript">
$(document).ready(function(){
  $("button").bind("click",function(){
    $("div").fadeTo("slow",0.20);
  });
});
</script>
Online Try This Code Your Self....   »

  jQuery Events References