Reputation: 5534
Hi I'm trying to remove some Hidden pages, here is my code.
$(document).bind("mobileinit", function () {
$(document).bind("pagehide", function () {
// At this stage works fine, but Don't know how to reference the hidden page
alert("Hello world");
});
});
The question is what is the correct way to reference the page that was hide?
It is possible to list only the pages using each()?
Upvotes: 1
Views: 1870
Reputation: 1640
Below is an example:
$(document).bind("mobileinit", function () {
$.mobile.document.bind('pagehide', function (event, ui) {
$(event.target).remove();
});
});
Upvotes: 1