Validation decides dynamically on next page

Validation decides dynamically on next page

The idea is that during validation on form submit, it is dynamically decided what the next page should be
It should be possible to go back to the same page again

In reality, the pages are generated by code behind, so going to the same page again does not mean the page  actually has the same content - this should also be possible. 

Currently in the implementation I have switched of ajax transitions, and I do the redirect in code behind. That works. But I would like to get the JQM page transitions. So I am looking for a way to do that in JQM. 

I can get the page transitions to work, but then the current page in DOM is messed up so the jQuery selectors fail. 

I saw the Plunker written by Omar on a related problem, so I adapted that  to my need, but here I get a Page Load error, Method not allowed. 


To use: enter 1, 2 or 3 and click submit

Pieter