IT. Expert System.

JQUERY

bind()


Description

The .bind() method attaches one or more event handlers for selected elements, and specifies a function to run when the events occur.


Bind Events and Functions to Elements

Specifies one or more event handlers to attach to selected elements, and a function to run when the event occurs.


v1.0

This method has the form:

.bind(event,data,function)
Parameter Description
event (required) Specifies one or more events to attach to the elements.

Multiple event values are separated by space. Must be a valid event.
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.3

This method has the alternative form:

.bind(event,data,false)
Parameter Description
event (required) Specifies one or more events to attach to the elements.

Multiple event values are separated by space. Must be a valid event.
data (optional) Specifies additional data to pass along to the function
false Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling

Return Value

This form returns a jQuery object.


v1.4

This method has the alternative form:

.bind(event:function,event:function, ...)
Parameter Description
event:function, event:function, ... (required) Specifies an event map containing one or more event to attach to the elements, and functions to run when the events occur

Return Value

This form returns a jQuery object.

Examples

Hide or show a p element when a button is clicked:

$("button").bind("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: 393 / . Delta: 0.10756 с