0 votes
1.6k 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 850 views
+1 vote
0 answers 583 views
+1 vote
1 answer 181 views
0 votes
1 answer 22 views
asked Jun 12, 2016 in Magento by Jelena
+1 vote
1 answer 8k views
asked May 10, 2017 in Jquery by Jasna
...