Click header title, show Dialog
I need to show a dialog when the header title text is touched. My code below captures the click event but i don't know how to programmatically show a dialog.
A few things:
- i dont want to turn the title into a button. if i wrap the title in an anchor it turns into a button.
- ultimately i want to show a pop-up list of pages the user can jump to. Unfortunately, when i substitute the text for a select list, jquery mobile turns it into a button. I dont want a button, i just want text.
Can someone shed light on this? Thanks in advance.
- <div data-role="header" data-position="inline" data-theme="b" data-nobackbtn="true" >
- <a href="">Logout</a>
- <h5>
- <div onclick="$.mobile.pageLoading();" style="cursor:pointer;">Navigate</div>
- </h5>
- <a href="index.html" data-icon="check" data-theme="b">Help</a>
- </div>
I love being a Dad, writing code and flying airplanes.