Chris J Allen
Chris J Allen

Reputation: 19207

Trying to get Scrollspy working

I've read through & followed some examples from this forum, but I cannot get scrollspy to work at all.

I fear I may be missing something stupid, heres my jsFiddle:

http://jsfiddle.net/pickledegg/2DV5L/9/

and heres one that works, http://jsfiddle.net/hajpoj/SZYKM/ hope someone can tell me whats up with mine!

Many thanks

Upvotes: 1

Views: 1015

Answers (1)

merv
merv

Reputation: 76700

You need to attach the ScrollSpy plugin to the element which triggers the scroll events, which in your case is not the body.

<div class="stuff" data-spy="scroll">

JSFiddle

Upvotes: 2

Related Questions