chrisdewar
-
Jquery Smooth Scroll to a name and id
The reason it's failing is because you are using this.hash as a selector. In the case of an element id it works, but you can't select a name like that. Try something like this: $(document).ready(function() { $('a[href^="…