IT. Expert System.

JQUERY

delegate()


Description

The delegate() method attaches one or more event handlers for specified elements that are children of selected elements, and specifies a function to run when the events occur.

Event handlers attached using the delegate() method will work for both current and FUTURE elements (like a new element created by a script).


v1.4.2

This method has the form:

.delegate(selector,event,function)
Parameter Description
selector (required) Specifies one or more child elements to attach the event handler to
event (required) A string containing one or more space-separated JavaScript event types
data (optional) Specifies additional data to pass along to the function
function (required) Specifies the function to run when the event(s) occur

Return Value

This form returns a jQuery object.


v1.4.2

This method has the alternate form:

.delegate(selector,event,data,function)
Parameter Description
selector (required) Specifies one or more child elements to attach the event handler to
event (required) A string containing one or more space-separated JavaScript event types
data (optional) Specifies additional data to pass along to the function
function (required) Specifies the function to run when the event(s) occur

Return Value

This form returns a jQuery object.

Examples

Create an event that hides or shows a p element when a button is clicked:

$("div").delegate("button",
  "click",function(){
  $("p").slideToggle();
});


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2807 / . Delta: 0.03285 с