diff options
| author | Mark Otto <[email protected]> | 2013-12-01 20:48:43 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-01 20:48:43 -0800 |
| commit | b636756e533c3fbcf3c1f70454f6a0d7064e819e (patch) | |
| tree | 03018b37fac6dbd18f3c5a5b30f5eae07d2d6e01 /javascript.html | |
| parent | 4876cbeef8c79686ba31c3ed22771357d71dbe51 (diff) | |
| parent | ab73ff182820954a644a5648f11f51d0704f9390 (diff) | |
| download | bootstrap-b636756e533c3fbcf3c1f70454f6a0d7064e819e.tar.xz bootstrap-b636756e533c3fbcf3c1f70454f6a0d7064e819e.zip | |
Merge pull request #11667 from neilhem/master
replace double quotation marks with single in code examples
Diffstat (limited to 'javascript.html')
| -rw-r--r-- | javascript.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/javascript.html b/javascript.html index f0be59da8..dcc2a1e84 100644 --- a/javascript.html +++ b/javascript.html @@ -43,14 +43,14 @@ $(document).off('.alert.data-api') <h3 id="js-programmatic-api">Programmatic API</h3> <p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p> {% highlight js %} -$(".btn.danger").button("toggle").addClass("fat") +$('.btn.danger').button('toggle').addClass('fat') {% endhighlight %} <p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p> {% highlight js %} -$("#myModal").modal() // initialized with defaults -$("#myModal").modal({ keyboard: false }) // initialized with no keyboard -$("#myModal").modal('show') // initializes and invokes show immediately</p> +$('#myModal').modal() // initialized with defaults +$('#myModal').modal({ keyboard: false }) // initialized with no keyboard +$('#myModal').modal('show') // initializes and invokes show immediately</p> {% endhighlight %} <p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.</p> @@ -1600,7 +1600,7 @@ $('.btn').button() <h3>Via JavaScript</h3> <p>Enable manually with:</p> {% highlight js %} -$(".collapse").collapse() +$('.collapse').collapse() {% endhighlight %} <h3>Options</h3> |
