Skip to content

Commit 9ba7aee

Browse files
committed
Tabs: Fix example to give active state to 1st tab
Closes gh-351
1 parent d2be7e4 commit 9ba7aee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pages/tabs.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
}
88
}</script>
99

10+
<<<<<<< HEAD
1011
<h2 id="introduction">Tabs</h2>
1112
<p>The jQuery UI tabs widget is bundled unchanged with jQuery Mobile. Thus, it's <a href="//api.jqueryui.com/tabs/">API documentation</a> fully describes its functionality.</p>
1213
<h2 id="options-and-autoinit">Options and autoinitialization</h2>
1314
<p>When used with jQuery Mobile's autoinitialization features, the options documented on the widget's API documentation page can also be provided as <code>data-*</code> attributes in the markup. You can add the <code>data-role="tabs"</code> attribute to your tabs widget markup to indicate that the element is to be turned into a tabs widget.</p>
1415
<h2 id="ajax">Ajax considerations</h2>
1516
<p>jQuery Mobile provides an extension to the tabs widget (<code>tabs.ajax</code>). The extension provides no new API, however, it modifies the way in which the widget evaluates whether displaying the content referred to by the <code>href</code> attributes of the links that play the role of tabs requires retrieval via Ajax. It is necessary to include this extension if your project consists of multiple external jQuery Mobile pages, one of which features a tabs widget.</p>
16-
17+
<div class="warning"><b>Note:</b> Use of links to open popup's and panels is not currently recommended in conjunction with the tabs widget. Clicking these links will remove the active state style of the selected tab.</div>
1718
<section class="entry-examples" id="entry-examples">
1819
<header><h2>Example:</h2></header>
1920
<div class="entry-example" id="example-0">
@@ -40,7 +41,7 @@ <h1>jQuery Mobile Example</h1>
4041
<div data-role="tabs">
4142
<div data-role="navbar">
4243
<ul>
43-
<li><a href="#fragment-1">One</a></li>
44+
<li><a href="#fragment-1" class="ui-btn-active">One</a></li>
4445
<li><a href="#fragment-2">Two</a></li>
4546
<li><a href="#fragment-3">Three</a></li>
4647
</ul>

0 commit comments

Comments
 (0)