Home >Web Front-end >JS Tutorial >jQuery Mobile navigation bar code_jquery
A navigation bar is a set of links arranged horizontally, usually contained within a header or footer.
By default, links in the navigation bar will automatically become buttons (data-role="button" is not required).
Use the data-role="navbar" attribute to define the navigation bar:
Activate Button
When a link in the navigation bar is clicked, it will gain the appearance of being selected (pressed).
If you want to get this look when you don’t have to worry about the link, use class="ui-btn-active":
For multiple pages, you may want the selected appearance of each button to represent the page the current user is on. To do this, add "ui-state-persist" and "ui-btn-active" to the linked class: