.each()

Previous Next

Iterates the execution of a function for each row contained in the Rows object.

Returns the 'this' object.

Syntax

.each( function index, row ) )

The required function is the function to be executed.

The optional index is the index key of the item in the rowset collection for which the function is executed. The index is 0-based: the first item has index 0, not 1.

The optional row is the row itself. Effectively, this is the same object as returned by 'this'.

 

Example

$.udb('EMP').rows().each(function(index, r){

 alert(r.cols('EMP_NO').val());

});

 

 

See Also

Rowset.each()