diff options
| author | ggam <[email protected]> | 2013-08-14 19:57:54 +0200 |
|---|---|---|
| committer | ggam <[email protected]> | 2013-08-14 19:57:54 +0200 |
| commit | 2be8a5a2457141edf823e853b8cacec8f997f2e4 (patch) | |
| tree | c20f5b01399d46c50137b17c0a18150b9e38f943 /javascript.html | |
| parent | cde39f7b785e5931d204ea33937adfbd7194204b (diff) | |
| download | bootstrap-2be8a5a2457141edf823e853b8cacec8f997f2e4.tar.xz bootstrap-2be8a5a2457141edf823e853b8cacec8f997f2e4.zip | |
Removed trailing semicolons from examples
Diffstat (limited to 'javascript.html')
| -rw-r--r-- | javascript.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/javascript.html b/javascript.html index 152b9b08e..fd0a5a027 100644 --- a/javascript.html +++ b/javascript.html @@ -683,17 +683,17 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () { <p>Enable tabbable tabs via JavaScript (each tab needs to be activated individually):</p> {% highlight js %} $('#myTab a').click(function (e) { - e.preventDefault(); - $(this).tab('show'); + e.preventDefault() + $(this).tab('show') }) {% endhighlight %} <p>You can activate individual tabs in several ways:</p> {% highlight js %} -$('#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) {% endhighlight %} <h3>Markup</h3> |
