diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index c6d1f403c4..01fcb97619 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -568,10 +568,10 @@ $('#myTab a').click(function (e) { })
{{_i}}You can activate individual tabs in several ways:{{/i}}
-$('#myTab a[href="#profile"]').tab('show'); //Select tab by name -$('#myTab a:first').tab('show'); //Select first tab -$('#myTab a:last').tab('show'); //Select last tab -$('#myTab li:eq(2) a').tab('show'); //Select third tab (0-indexed) +$('#myTab a[href="#profile"]').tab('show'); // Select tab by name +$('#myTab a:first').tab('show'); // Select first tab +$('#myTab a:last').tab('show'); // Select last tab +$('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
{{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab"
or data-toggle="pill"
on an element. Adding the nav
and nav-tabs
classes to the tab ul
will apply the bootstrap tab styling.{{/i}}
- {{_i}}Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom.{{/i}}
+ {{_i}}Activates a tab element and content container. Tab should have either a data-target
or an href
targeting a container node in the DOM.{{/i}}
<ul class="nav nav-tabs" id="myTab"> @@ -604,7 +604,7 @@ $('#myTab li:eq(2) a').tab('show'); //Select third tab (0-indexed) <script> $(function () { - $('#myTab a:last').tab('show') + $('#myTab a:last').tab('show'); }) </script>