Skip to main content
added 14 characters in body
Source Link
Omar
  • 31.7k
  • 9
  • 73
  • 117

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pageContainer.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }

Documentation

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }

Documentation

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pageContainer.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }

Documentation

Added documentation link and fixed typo in code sample
Source Link

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pageContainer.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }

Documentation

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pageContainer.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }

Documentation

Source Link
Phill Healey
  • 3.2k
  • 2
  • 36
  • 71

It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:

var activepage = $.mobile.pageContainer.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{   /* do something here */ }