pageinit


pageinit eventversion added: 1.0

Description: Triggered on the page being initialized, after initialization occurs.

  • jQuery( ".selector" ).on( "pageinit", function( event ) { ... } )

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.

1
2
3
$( document ).on( "pageinit", "#aboutPage", function( event ) {
alert( "This page was just enhanced by jQuery Mobile!" );
});