For multiple page single html type application, is it possible to remove an element in previous page from an current active page so that when user clicks on a back button, it will show updated page? I have tried something similar like below but it does not seem to work.
Thanks
ex)
<script>
function somecallback_in_page1() {
$("#page2").find("#foo").remove();
}
</script>
<!-- current page -->
<div data-role="page" id="page1">
</div>
<div data-role="page" id="page2">
<div id="foo">bar</div>
</div>