The changePage parameter must be a DOM object. Therefore, if you want to use changePage manually, you must provide it with a DOM object. I suggest you use them to work to get the page DOM object
var allPage = $('div.ui-page');
As you can see: in the first line, I get the whole DOM object from my page. in the next line, I search in the previous DOM objects to find the page I need. and finally you can give it the changePage function. It will work just fine.
source share