<p>You can also activate a specific tab (or a pseudo-selected one) on init:</p>
<preclass="prettyprint linenums">
$('#myTab a[href="#profile"]').tab('show');
$('#myTab a:last').tab('show');
</pre>
<h3>Markup</h3>
<h3>Markup</h3>
<p>You can activate a tab or pill navigation without writing any javascript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element.</p>
<p>You can activate a tab or pill navigation without writing any javascript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element.</p>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
...
@@ -653,7 +658,7 @@ $('#myModal').on('hidden', function () {
...
@@ -653,7 +658,7 @@ $('#myModal').on('hidden', function () {
Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom.
Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom.