How do I get the next page object in jQuery Mobile?
Have tried this:
var nextpage = $.mobile.activePage.next('[data-role="page"]');
and this:
var nextpage = $.mobile.pageContainer.pagecontainer('getActivePage').next('[data-role="page"]');
Non of them works. Have of course tried to read documentation but can't figure out how to do.
I'm having jQuery Mobile version 1.4.5.
Try:
$(":mobile-pagecontainer").pagecontainer( "getActivePage" ).next('[data-role="page"]').prop("id");
API Docs: http://api.jquerymobile.com/pagecontainer/#method-getActivePage
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.