0 votes
1.8k 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 966 views
+1 vote
0 answers 586 views
+1 vote
1 answer 357 views
0 votes
1 answer 24 views
asked Jun 13, 2016 in Magento by Jelena
+1 vote
1 answer 8.1k views
asked May 11, 2017 in Jquery by Jasna
...