I transferred a tab bar from one of my projects to jsfiddle, but the CSS was too complex to understand. So, I extracted useful code from the CSS and created my own version in this new fiddle. However, it looks exactly like the example. Now, I need to implement the same tab bar in my jQuery mobile project.
For that, I utilized data-role ="navbar"
In my final demo, I aim to replace the button with a similar tab bar at the top.
<div data-role="navbar">
<ul>
<li><a href="#" class="tabBtn" data-tabid="0">One</a></li>
<li><a href="#" class="tabBtn" data-tabid="1">Two</a></li>
<li><a href="#" class="tabBtn" data-tabid="2">Three</a></li>
</ul>
</div>
How can I replicate the tab bar as seen in the previous fiddles?