` Fiddle link: http://jsfiddle.net/vu6hN/28/ `
Basically, if you expand the window size anything larger than 1230px, you will notice a navigation bar to the right. It's supposed to highlight whichever section you are scrolling on.
For some reason, when I have the jQuery version set to 1.10.1, it works. But when I change it to version 3.4.1 it breaks!
You need to wrap
#'+ id +'
in""
like$('#nav nav a[href="#'+ id +'"]').addClass('active');
Demo