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);

Parameters

idnumber|stringthe item ID
stepnumberthe step (by default, 1)

Returns

idthe item ID
See also
Back to top