.each()

Previous Next

Iterates the execution of a function over the matched columns.

Returns the 'this' object.

Syntax

.each( functionindexcolumn ) )

Function is the function that is to be called for each of the matched columns.

Index is the array index of the column for which the function is executed. The index is 0-based: the first item has index 0, not 1.

Column is the column itself. Effectively, column is the same object as returned by 'this'.

 

Example

$.udb('EMP').rows('current').cols().each(function(c){

 alert(c.name());

});