Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div data-role="page" id="homePage">
- <div data-role="header" data-theme="b">
- <h1>
- Heading
- </h1>
- </div>
- <div data-role="content">
- <select name="select-choice" id="select-choice">
- <option value="Select Category">Select Category
- </select>
- </select>
- </div>
- </div>
- $(document).on("pageshow", "#homePage", function () {
- alert("on page show event occurred!! ");
- // I did my logic here...
- });
- $(document).on('pagebeforecreate',function(){console.log('pagebeforecreate');});
- $(document).on('pagecreate',function(){console.log('pagecreate');});
- $(document).on('pageinit',function(){console.log('pageinit');});
- $(document).on('pagebeforehide',function(){console.log('pagebeforehide');});
- $(document).on('pagebeforeshow',function(){console.log('pagebeforeshow');});
- $(document).on('pageremove',function(){console.log('pageremove');});
- $(document).on('pageshow',function(){console.log('pageshow');});
- $(document).on('pagehide',function(){console.log('pagehide');});
- $(window).load(function () {
- console.log("window loaded");
- });
- $(function () {
- console.log('document ready');
- });
- $(window).on('unload',function () {console.log("window unloaded");});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement