I am trying to create a site using Bootstrap 3 RC1 with Scrollspy. My webpage is pretty straightforward right now and essentially created as follows:
<html>
<head>
</head>
<body>
<section id="section_1" data-spy="scroll">
</section>
<section id="section_2" data-spy="scroll">
</section>
<section id="section_3" data-spy="scroll">
</section>
<JScripts here ... />
</body>
</html>
I initialized Scrollspy by calling $("section").scrollspy(), and I configured the event handler as follows:
$("section").on("activate", function(e) {
});
My problem is that this event activatenever fires. Does anyone know why it is not working? I noticed that all tutorials use the navigation bar to highlight the current section, but I really don't want a navigator.
source
share