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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -