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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -