public
Description: Data Binding Plugin for jQuery
Home | Edit | New

Element::update

It is a custom event, triggered when chain is updating.

Syntax

$(element).update()

Routines

This method will execute different routines depending on the arguments passed.

update()

If no argument is passed, it will update the element and trigger the update event.

$('#element').update();

update(function)

If you pass a function to update, it will bind it to the update event. just like jQuery’s click() or mouseover().

$('#el').update(function(event, data){
	// Do something
	// If item is defined, data will be item data.
	// "this" is  the current element. make sure you use "$(this)" inside update
});

// Same as:
$('#el').bind('update', function(){...});

Last edited by raid-ox, Fri Aug 15 06:56:35 -0700 2008
Home | Edit | New
Versions: