Adding id to pages in jquery mobile -


for internal linking in jquery mobile, seem need adding unique id each page div can handle each page separately. since page div being generated jquery mobile dynamically, best practice add dynamic id divs?

edit: requesting new page follows:

$(document).on("swipeleft", function () {     nextpage = getnextpage();     $.mobile.pagecontainer.pagecontainer("change", nextpage, { changehash: true }); }); 

where nextpage dynamic url. use approach allow paging.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -