Link to home
Start Free TrialLog in
Avatar of wsessoms
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($("#page2"),{ransition:"slideUp"});
</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>
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

What is the complete html.
We can only see page 2 now
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.
ASKER CERTIFIED SOLUTION
Avatar of wsessoms
wsessoms

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wsessoms
wsessoms

ASKER

Simple mistake