Getting the current page ID when a link/button is pressed.
Hi is it possible when a link is pressed to get the ID of the page the link is in?
For example.
- <div data-role="page" id="lazy_summer">
- <div data-role="header">
- <h1>Page One</h1>
- </div>
- <div data-role="content">
- <a href="#page2" id="callEvent">Example</a>
- // When this link is clicked the page id (lazy_summer) is displayed before
- // The page transition.
- </div>
- <div data-role="footer">
- <h4>Page Footer</h4>
- </div>
- </div>
I wish to return the the id="lazy_summer";
Thanks,
Lammie.