Change page links on the fly (jQuery Mobile)

Change page links on the fly (jQuery Mobile)

Hello all,

I am an absolute jQuery Mobile beginner. I have a multi-page with several internal pages. I understand how buttons and anchors on one page can point a a different page. However, in my situation when a user presses a button on, say, page1 I want to dynamically decide if he should go to page2, page3 or page4, based on whatever other input the user has provided on page1.

How can I achieve this?

Cheers, Silvio