Answer the question
In order to leave comments, you need to log in
How to connect scrollspy plugin from twitter bootstrap?
In general, does this beast work normally for someone? Yesterday I smoked manuals all night and didn’t really find anything, in principle, I implemented everything by other methods, it was just too lazy to reinvent the wheel if there is a built-in function. If someone used it please throw the code, I wonder how it was launched
Answer the question
In order to leave comments, you need to log in
And you try, I didn’t manage to bend it, and the question was for those who used it, but apparently you don’t belong to those)
jsfiddle.net/iiil/ruABR
Here, I blinded it in 5 minutes, sorry for the messy layout - I did it cleanly so that you can see the scrollspy work.
No, I'm not trolling. In all seriousness - nothing complicated, just attentiveness.
O_o yes, it works, damn it, but I stupidly don’t want to add class = "active", I don’t even know why, maybe the assembly is not the latest, thanks for showing that it works, there will be time to figure out why I don’t want to, at the moment I solved everything by other methods, but it became very interesting what exactly my problem was, and the main thing is that the scripts of the left did not have its own current, though the menu is not his, but it's not critical, the selectors are indicated ... thanks again, I'll definitely look , just why invent something else if everything is already there and you just need to sort it out
line:
array:
var fruits = document.getElementById("input").value;
fruits = fruits.split(' ');
I just wanted to write something like "where's the actual array?" but I got ahead of myself...)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question