html - Reference to pages outside from a wrapper div with Jquery Mobile -
i want link page out of wrapper div. reason why wan't in actual app in settings page have button reloads pages inside wrapper div.
here code: (this doesn't work)
<div id="wrapper"> <div data-role="page" data-theme="b" id="page1"> <div id="header" data-role="header" data-theme="b" > <h1>page1</h1> <a href="#settings">settings</a> </div> <div id="content" data-role="main" data-theme="b" > <h2>content</h2> </div> <div data-role="footer" data-theme="b" > </div> </div> </div> <div data-role="page" data-theme="b" id="settings"> <div id="header" data-role="header" data-theme="b"> <h1>settings page</h1> <a href="#page1">back</a> </div> <div id="content" data-role="main" data-theme="b" > <h2>content</h2> </div> <div data-role="footer" data-theme="b" > </div> </div> here according jsfiddle
Comments
Post a Comment