html5 - JQuery Mobile data-role initialization on a included html -
i have parent.html in 1 of including child.html:
$("#mydiv").load("child.html");
the problem here mobileinit called @ parent. child.html had div data-role.
is there way force data-role attribute rendered in child.html?
mobileinit event triggered once in jquery mobile application lifecycle. if load additional content must manually trigger pagecreate event instead.
$("#newpage").trigger('pagecreate');
where "newpage" name of page loaded inside child.html
Comments
Post a Comment