diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html index 25f5671c4f..dc89006861 100644 --- a/docs/_includes/js/scrollspy.html +++ b/docs/_includes/js/scrollspy.html @@ -55,6 +55,14 @@
Scrollspy currently requires the use of a Bootstrap nav component for proper highlighting of active links.
+Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the DOM like <div id="home"></div>.
:visible target elements ignoredTarget elements that are not :visible according to jQuery will be ignored and their corresponding nav items will never be highlighted.
No matter the implementation method, scrollspy requires the use of position: relative; on the element you're spying on. In most cases this is the <body>.
Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the DOM like <div id="home"></div>.
:visible target elements ignoredTarget elements that are not :visible according to jQuery will be ignored and their corresponding nav items will never be highlighted.