how do you specify a sub page using $.mobile.changePage("page2.html")
hi,
I am wondering if there is a way to specify which specific page div to load when using changePage to navigate to a different html page.
For example, I have 2 html pages in my app. My program starts with page1.html. page2.html contains 2 jquery mobile pages.
<div data-role="page" id="html2page1" ... </div>
<div data-role="page" id="html2page2" ... </div>
I want to be able to call $.mobile.changePage("page2.html#html2page2") from page1.html but it doesn't work. And $.mobile.changePage("page2.html") just seems to load the first <div data-role="page" ...</div> on the page.
any ideas?