Created
May 8, 2020 18:26
-
-
Save elizad/cb8cd8ea60ad0da08b04fd7549ce3076 to your computer and use it in GitHub Desktop.
This file contains 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
How to disable a link using only CSS? | |
.not-active { | |
pointer-events: none; | |
cursor: default; | |
text-decoration: none; | |
color: black; | |
} | |
<a href="link.html" class="not-active">Link</a> | |
or js | |
$('a.current-page').click(function() { return false; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment