jQuery Mobile exposes a suite of methods that are helpful when you need to programmatically update your Mobile Web application.

  • $.mobile.changePage()

    The changePage function handles all the details of transitioning from one page to another.


    $.mobile.changePage( toPage, [options] )


    • toPage (sting or jQuery collection). The page to transition to.
    • toPage (string). A file URL ("contact.html") or internal element's ID (“#contact”).
    • toPage (object). A jQuery collection object containing a page element as its first argument: $(“#contactPage”)

    options (object). A set of key/value pairs that configure the changePage request. All settings are optional.

    • allowSamePageTransition (boolean, default: false). The changePage method ...

Get Pro jQuery Mobile now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.