How can I update a record while inside .eachPage?

Hey guys,

I’m trying to basically update the field of every record while in select mode, since I need the recID, is there a way to be able to use .update while in .eachPage?