getNextId

returns the ID of an item that is after the specified item, either directly after or after a number of items (defined by the step)

id getNextId(number|string id, [number step] );
idnumber|stringthe item ID
stepnumberthe step (by default, 1)
idthe item ID
See also
Back to top