Triggered on the page being initialized, after initialization occurs.
We recommend binding to this event instead of DOM ready() because this will work regardless of whether the page is loaded directly or if the content is pulled into another page as part of the Ajax navigation system.
$( document ).on( "pageinit", "#aboutPage", function( event ) { alert( "This page was just enhanced by jQuery Mobile!" ); });
Note: This event has been deprecated in 1.4.0 in favor of
pagecreate
. Simply replace pageinit
in the above example.
jQuery( ".selector" ).on( "pageinit", function( event ) { ... } )
Please login to continue.