Change the title of a dynamic page in Mobile Jquery
$(document).attr(“title", “test" );
this is true only for the first generated page. The second generated page will have correct
and data-title but document.title is set the same as the first generated page.
add to fix:
$(‘div[data-role="page"]’).bind(“pageshow", function () {
if ($.mobile.activePage.attr(“id") === “") {
document.title = $.mobile.activePage.attr(“data-title");
}
});