pageinit event

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 ) { ... } )
doc_jQuery
2016-03-28 15:04:57
Comments
Leave a Comment

Please login to continue.