Я создал страницу с помощью jQuery Mobile и пытался динамически добавлять контент:
$(function () {
$("#deviceTarget").sortable({
revert: true
});
$("body > div[data-role='page']").append($("<div data-role='header' data-theme='a' data-position='fixed'><h1>Header</h1></div>"));
$("body > div[data-role='page']").append($("<div data-role='footer' data-theme='a' data-position='fixed'><h1>Footer</h1></div>"));
$.mobile.activePage.trigger("create");
});
$(document).bind('mobileinit',function(){
$.mobile.defaultPageTransition = 'none';
$.mobile.selectmenu.prototype.options.nativeMenu = false;
});
function refreshPage() {
$.mobile.activePage.trigger("create");
}
Но я получил результат (изображение).
Я хочучтобы получить результат (изображение).
Как я могу это сделать?
Спасибо.