I'm trying to add some smooth srolling to Bootstrap pages (so that clicking the in-page links in the left-hand menu will cause the page to scroll rather than jump to the specific section).
I'm using some jQuery which selects all hashed links and then applies the scroll animation when clicked. It mostly works, except that it breaks the functionality of any carousel image viewers on the page (since they also use hashed links).
Just wondering if there was an easy way around this, other than manually excluding any carousels, e.g.:
Code:
$("a[href^='#']").not('[href="#car0_6"]').not('[href="#car5_1"]').not('[href="#car6_4"]').click(function () ...etc