
Untitled
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.51 KB | hits: 22 | expires: Never
jQuery mobile data-page='content' ONLY transition
//bind an event handler to the `pagecreate` event for all `data-role="page"` elements
$(document).delegate('[data-role="page"]', 'pagecreate', function () {
//append a footer to this page (`pagecreate` is only called once per page added to the DOM so you don't have to worry about appending multiple footers to a single page
$(this).append('<div data-id="my-fixed-footer" data-position="fixed" data-role="footer">{THE HTML FOR YOUR FOOTER GOES HERE}</div>');
});