0 votes
1.4k views
asked in Jquery by
How do you find all active links on a page with JS which are not hashed '#' (non-hashed) ?

1 Answer

0 votes
answered by
$('a').each(function()
    {
      if (this.href[this.href.length -1] != '#')
      {
        alert(this.href.toLowerCase());
      }
    });

Related questions

0 votes
1 answer 727 views
+1 vote
0 answers 579 views
0 votes
1 answer 21 views
asked Jun 12, 2016 in Magento by Jelena
+1 vote
1 answer 8k views
asked May 10, 2017 in Jquery by Jasna
...