From 3a62811bbde4e428df1882bddf940f40381a8d41 Mon Sep 17 00:00:00 2001 From: Julian Thilo Date: Tue, 28 Jan 2014 00:01:10 +0100 Subject: [PATCH] Update javascript.html --- docs/javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/javascript.html b/docs/javascript.html index e9b4879ddc..b0e1287ba3 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1924,7 +1924,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {

Multiple carousels

-

Carousels require the use of an id on the outermost container, .carousel, for carousel controls to properly function. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.

+

Carousels require the use of an id on the outermost container, .carousel, for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.

Via data attributes

Use data attributes to easily control the position of the carousel. data-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-slide-to to pass a raw slide index to the carousel data-slide-to="2", which shifts the slide position to a particular index beginning with 0.