jQuery Tutorial


jQuery Example


jQuery References


jQuery delegate() Event Reference


  jQuery Events References


Uses

delegate() Event occurs when add one or more event handlers, specific child element of matching elements.

Syntax

$(selector).delegate(ChildSelector,event,[data],function)

jQuery delegate() events supported following parameters.

ParameterDescription
Child Selector ChildSelector is Required parameter. ChildElement define add one or more childelement add to handle event.
event event is Required parameter. event define add one or more event add to handle event.
data data is Optional parameter. data define the addition data pass to the function.
function Function is Optional parameter. Function define the ready to run when event occur.

Example

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

  jQuery Events References