How after Load of Page id="tut" in jQueryMobile call a function eg alert(9)?

// How after Load of Page id=“tut” in jQueryMobile call a function eg alert(9) ???
below nothing alert on load id=“tut” … the script in in the bottom of index.html, well ?

<div data-role="page" id="tut" data-add-back-btn="true" data-back-btn-text="Back" data-fullscreen="true">
....
....
<script>

	// A $( document ).ready() block.
	$( document ).ready(function() {
		$( "div#tut" ).pagecontainer({
			load: function( event, ui ) { alert(9) }
		});
	});

</script>

While I don’t know anything about mobile development, info about the mobile pagecontainer is found at https://api.jquerymobile.com/pagecontainer/

The selector must point to the page to load for the event to happen in this case div#tut
?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.