wsessoms
asked on
JQuery Mobile pageChange() Question
Can one of the experts give me an example of how to programically change the page using a multi-page jquery mobile template.when it change to page2 the page is blank. Your help is appreciated. This is my code.
JQuery SCRIPT
<script>
$.mobile.changePage($("#pa ge2"),{ran sition:"sl ideUp"});
</script>
HTML
<div data-role="page" id="page2">
<div data-role="header">
<h1>Page 2</h1>
</div>
<div data-role="content">
My Content
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
JQuery SCRIPT
<script>
$.mobile.changePage($("#pa
</script>
HTML
<div data-role="page" id="page2">
<div data-role="header">
<h1>Page 2</h1>
</div>
<div data-role="content">
My Content
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
are you absolutely sure you are including the proper javascripts? Are they the latest versions?
Please post the rest of your html for this document.
Please post the rest of your html for this document.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Simple mistake
We can only see page 2 now