diff --git a/docs/javascript.html b/docs/javascript.html index 16cd66e65a..ddb233fd5f 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -2073,11 +2073,11 @@ $('#myCarousel').on('slide.bs.carousel', function () {

Via JavaScript

Call the affix plugin via JavaScript:

{% highlight js %} - $('#myAffix').affix({ + $('#my-affix').affix({ offset: { top: 100 , bottom: function () { - return (this.bottom = $('.bs-footer').outerHeight(true)) + return (this.bottom = $('.footer').outerHeight(true)) } } })