1

I am using JQM 1.6.4

I am trying to change to another page within the same HTML document by using the call:

$.mobile.pageContainer.pagecontainer("change", "#aquire_date");

which I found at this link.

However, when I try, I get the error:

$.mobile.pageContainer.pagecontainer is not a function

Here is the DIV I am trying to switch to:

<div data-role="page" id="#aquire_date">

Am I setting the call correctly?

Community
  • 1
  • 1
Lee Loftiss
  • 3,035
  • 7
  • 45
  • 73

2 Answers2

1

To get jQuery Mobile 1.4 working, you need to at least use jQuery 1.8.3. The recommended jQuery library is 1.9.

  • jQM 1.1 -> jQuery 1.6.4
  • jQM 1.2 -> jQuery 1.7.2
  • jQM 1.3 & 1.4 -> jQuery 1.9.1
Omar
  • 32,302
  • 9
  • 69
  • 112
0

The jQuery Mobile (JQM) added Pagecontainer Widget in 1.4.0 version http://api.jquerymobile.com/pagecontainer/ so you will have to use 1.4.0 atleast so that you won't get the error Also it is recommended to use jQuery 1.9.1 or above with it.

Swapnil Mhaske
  • 365
  • 7
  • 21