Skip to content

Can select links that aren't internal links. #1

@mrchimp

Description

@mrchimp

Here, have some code.

 $('a[href*=#]:not([href=#])').click(function(e) {

if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 
&& location.hostname == this.hostname) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions