I've encountered a problem with my HTML code that I need help fixing.
<div data-role="page" id="page1">
</div>
<div data-role="page" id="page2">
</div>
Within a single HTML file, I have multiple pages defined. When transitioning from page1 to page2 using the following code:
$.mobile.changePage("#page2", {transition : "slide"});
The browser displays page2 briefly, then reverts back to page1 for 3 seconds before finally displaying page2 again.
I'm looking for guidance on resolving this issue. Any suggestions?