javascript - JQM How to remove DOM of the previous page with changepage -
i'm have issue code.
when call changepage method on jquery mobile, page stay in dom.
i want remove that, didn't find answer on internet , stackoverflow.
i tried $().remove() manually page, when keep page, doesn't display anything.
anyone have solution ? time.
this may fix issue:
$('div[data-role="page"]').on('pageshow',function(event, ui){ $(ui.prevpage).remove(); });
Comments
Post a Comment