Increment an input value not saved in the database

I think I have a similar challenge/solution as this post: Update number in a text box as user clicks + or - buttons next to it but could use some guidance.

I currently have a disabled, hidden input field on a form that defaults to (integer) “1”. That’s used to call up what text to show in other fields on the form (i.e. acts as the key for what database row to retrieve for displaying the title, some text, etc.). I want to have that field increment up or down as a user is clicking next or back on my form. At the root, I want the user to click Next and get the next set of text on screen (like a quiz/survey), or be able to click Back and get the previous set of text on screen.

Have a look at this