Created
January 8, 2014 22:35
-
-
Save astromac/8325768 to your computer and use it in GitHub Desktop.
Disables placeholder links to prevent page scrolling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disable link clicks to prevent page scrolling | |
$('a[href="#fakelink"]').on('click', function (e) { | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment